mirror of
https://github.com/boostorg/mpl.git
synced 2025-08-03 23:04:33 +02:00
BCC 5.6.5 fix
[SVN r16015]
This commit is contained in:
@@ -37,6 +37,22 @@ struct template_arity_impl
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
#if defined(__BORLANDC__) && (__BORLANDC__ >= 0x561 && !defined(BOOST_STRICT_CONFIG))
|
||||||
|
template< typename Rebind >
|
||||||
|
struct template_arity_value
|
||||||
|
{
|
||||||
|
BOOST_STATIC_CONSTANT(int, value = Rebind::arity);
|
||||||
|
};
|
||||||
|
|
||||||
|
template<>
|
||||||
|
struct template_arity_impl<true>
|
||||||
|
{
|
||||||
|
template< typename F > struct result_
|
||||||
|
: template_arity_value<typename F::rebind>
|
||||||
|
{
|
||||||
|
};
|
||||||
|
};
|
||||||
|
#else
|
||||||
template<>
|
template<>
|
||||||
struct template_arity_impl<true>
|
struct template_arity_impl<true>
|
||||||
{
|
{
|
||||||
@@ -46,6 +62,7 @@ struct template_arity_impl<true>
|
|||||||
BOOST_STATIC_CONSTANT(int, value = f_::arity);
|
BOOST_STATIC_CONSTANT(int, value = f_::arity);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
template< typename F >
|
template< typename F >
|
||||||
struct template_arity
|
struct template_arity
|
||||||
|
Reference in New Issue
Block a user