forked from boostorg/function
Fix for Borland, from Tobias Schwinger
[SVN r26886]
This commit is contained in:
@ -63,11 +63,19 @@ namespace boost { namespace python { namespace objects {
|
|||||||
# define BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX
|
# define BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x600)
|
||||||
# define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \
|
# define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \
|
||||||
typename ::boost::enable_if_c<(::boost::type_traits::ice_not< \
|
typename ::boost::enable_if_c<(::boost::type_traits::ice_not< \
|
||||||
(::boost::is_integral<Functor>::value)>::value), \
|
(::boost::is_integral<Functor>::value)>::value), \
|
||||||
Type>::type
|
Type>::type
|
||||||
|
#else
|
||||||
|
// BCC doesn't recognize this depends on a template argument and complains
|
||||||
|
// about the use of 'typename'
|
||||||
|
# define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \
|
||||||
|
::boost::enable_if_c<(::boost::type_traits::ice_not< \
|
||||||
|
(::boost::is_integral<Functor>::value)>::value), \
|
||||||
|
Type>::type
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
|
#if !defined(BOOST_FUNCTION_NO_FUNCTION_TYPE_SYNTAX)
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
Reference in New Issue
Block a user