mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 14:54:30 +02:00
Borland 5.6.1 fix
[SVN r17031]
This commit is contained in:
@@ -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 };
|
||||||
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@@ -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
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user