[function] function_base.hpp comile error with bcc32-5.6.5

I am trying to compile the boost libraries. I encountered a compile error with bcc32: Error E2437 D:\boost\boost_1_32_0\boost/function/function_base.hpp 598(55): 'typename' should be followed by a qualified, dependent type name Can someone help? Greetings Roman

Roman Morokutti wrote:
I am trying to compile the boost libraries. I encountered a compile error with bcc32:
Error E2437 D:\boost\boost_1_32_0\boost/function/function_base.hpp 598(55): 'typename' should be followed by a qualified, dependent type name
BCC has its own ideas about when or when not to use typename, due to its inability to see the type's dependent. 66,68c66,78 < #define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \ < typename ::boost::enable_if_c<(::boost::type_traits::ice_not< \ < (::boost::is_integral<Functor>::value)>::value), \ ---
#if !BOOST_WORKAROUND(__BORLANDC__, < 0x600) # # define BOOST_FUNCTION_ENABLE_IF_NOT_INTEGRAL(Functor,Type) \ typename ::boost::enable_if_c<(::boost::type_traits::ice_not< \ (::boost::is_integral<Functor>::value)>::value), \ 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), \ 70c80,81 <
# #endif

Hi Tobias, I didn“t thought to get an answer on this issue so I am very pleased about yours. I immediatly tried your solution and it works! Thank you for your help. Greetings Roman

On Saturday 15 January 2005 01:07 pm, Tobias Schwinger wrote:
Roman Morokutti wrote:
I am trying to compile the boost libraries. I encountered a compile error with bcc32:
Error E2437 D:\boost\boost_1_32_0\boost/function/function_base.hpp 598(55): 'typename' should be followed by a qualified, dependent type name
BCC has its own ideas about when or when not to use typename, due to its inability to see the type's dependent.
I just realized there was a patch in there. Thanks! It's in CVS now. Doug
participants (3)
-
Douglas Gregor
-
Roman Morokutti
-
Tobias Schwinger