[type traits, mpl] small fix for BCB 6.4

BCB 6.4 doesnt't like when top level namespace is prefixed with :: type_traits/is_const.cpp contains line BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_const,T,::boost::detail::cv_traits_imp<T*>:: is_const) If the leading :: is removed to BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_const,T,boost::detail::cv_traits_imp<T*>::is _const) BCB stops complaining. There are few other places there which may be changed similarly. ---------------- The same problem appears in MPL's value_wknd.hpp: # if !defined(BOOST_MPL_MSVC_60_ETI_BUG) # define BOOST_MPL_AUX_VALUE_WKND(C) ::boost::mpl::aux::value_wknd< C
needs to be changed to # define BOOST_MPL_AUX_VALUE_WKND(C) boost::mpl::aux::value_wknd< C > These problems appeared when trying to compile Collection Traits library. /Pavel

BCB 6.4 doesnt't like when top level namespace is prefixed with ::
type_traits/is_const.cpp contains line
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_const,T,::boost::detail::cv_traits_imp<T*>::
is_const)
If the leading :: is removed to
BOOST_TT_AUX_BOOL_TRAIT_DEF1(is_const,T,boost::detail::cv_traits_imp<T*>::is
_const)
BCB stops complaining.
There are few other places there which may be changed similarly.
Unfortunately that change would normally break BCB6.4 : without the leading :: it doesn't view what follows as an integral constant expression. Do you have a test case? (I've had a quick look at the container traits lib, but Borland 6.4 wouldn't compile any of the tests :-( ) John.

"John Maddock" <john@johnmaddock.co.uk> wrote:
Unfortunately that change would normally break BCB6.4 : without the leading :: it doesn't view what follows as an integral constant expression. Do you have a test case? (I've had a quick look at the container traits lib, but Borland 6.4 wouldn't compile any of the tests :-( )
Collection traits has other problems that prevent it to compile (BCB has, that is). Maybe the decision whether to fix problems above should be postponed and considered onlyduring port of Collection Traits (if that happens). /Pavel
participants (2)
-
John Maddock
-
Pavel Vozenilek