mangle a parameter name; to make MSVC 6.5 happy

[SVN r17541]
This commit is contained in:
Aleksey Gurtovoy
2003-02-20 04:09:13 +00:00
parent 08402082e5
commit f41dd6146d

View File

@@ -77,7 +77,7 @@ struct if_
// MSVC6.5-specific version // MSVC6.5-specific version
template< template<
bool C bool C_
, typename T1 , typename T1
, typename T2 , typename T2
> >
@@ -88,13 +88,13 @@ struct if_c
template<> struct answer<false> { typedef T2 type; }; template<> struct answer<false> { typedef T2 type; };
public: public:
typedef typename answer< C >::type type; typedef typename answer< C_ >::type type;
}; };
// (almost) copy & paste in order to save one more // (almost) copy & paste in order to save one more
// recursively nested template instantiation to user // recursively nested template instantiation to user
template< template<
typename C typename C_
, typename T1 , typename T1
, typename T2 , typename T2
> >
@@ -106,12 +106,12 @@ struct if_
// agurt, 17/sep/02: in some situations MSVC 7.0 doesn't // agurt, 17/sep/02: in some situations MSVC 7.0 doesn't
// handle 'answer<C::value>' expression very well // handle 'answer<C::value>' expression very well
enum { c_ = C::value }; enum { c_ = C_::value };
public: public:
typedef typename answer< BOOST_MPL_AUX_ICE_CAST(bool, c_) >::type type; typedef typename answer< BOOST_MPL_AUX_ICE_CAST(bool, c_) >::type type;
BOOST_MPL_AUX_LAMBDA_SUPPORT(3,if_,(C,T1,T2)) BOOST_MPL_AUX_LAMBDA_SUPPORT(3,if_,(C_,T1,T2))
}; };
#else #else