BCC 5.6.5 fix

[SVN r16015]
This commit is contained in:
Aleksey Gurtovoy
2002-10-29 22:57:54 +00:00
parent 2c9df6a693
commit a7f22212c4

View File

@@ -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<>
struct template_arity_impl<true>
{
@@ -46,6 +62,7 @@ struct template_arity_impl<true>
BOOST_STATIC_CONSTANT(int, value = f_::arity);
};
};
#endif
template< typename F >
struct template_arity