Borland 5.6.1 fix

[SVN r17031]
This commit is contained in:
Aleksey Gurtovoy
2003-01-24 16:41:32 +00:00
parent f6326deffa
commit f2569333ce
2 changed files with 7 additions and 1 deletions

View File

@@ -17,7 +17,8 @@ struct template_arity_impl<true>
{ {
template< typename F > struct result_ template< typename F > struct result_
{ {
static int const value = F::arity; enum { value = F::arity };
}; };
}; };

View File

@@ -129,6 +129,7 @@ struct template_arity
# include "boost/mpl/aux_/config/eti.hpp" # include "boost/mpl/aux_/config/eti.hpp"
# include "boost/mpl/aux_/config/static_constant.hpp" # include "boost/mpl/aux_/config/static_constant.hpp"
# include "boost/mpl/aux_/config/workaround.hpp"
namespace boost { namespace mpl { namespace aux { namespace boost { namespace mpl { namespace aux {
@@ -146,7 +147,11 @@ struct template_arity_impl<true>
{ {
template< typename F > struct result_ template< typename F > struct result_
{ {
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x561 && !defined(BOOST_STRICT_CONFIG))
enum { value = F::arity };
#else
BOOST_STATIC_CONSTANT(int, value = F::arity); BOOST_STATIC_CONSTANT(int, value = F::arity);
#endif
}; };
}; };