DigitalMars workaround

[SVN r24917]
This commit is contained in:
Aleksey Gurtovoy
2004-09-05 11:41:08 +00:00
parent e100bd939c
commit 1a7a514fca

View File

@@ -45,10 +45,12 @@ struct if_c<false,T1,T2>
typedef T2 type; typedef T2 type;
}; };
// agurt, 05/sep/04: nondescriptive parameter names for the sake of DigitalMars
// (and possibly MWCW < 8.0); see http://article.gmane.org/gmane.comp.lib.boost.devel/108959
template< template<
typename BOOST_MPL_AUX_NA_PARAM(C) typename BOOST_MPL_AUX_NA_PARAM(T1)
, typename BOOST_MPL_AUX_NA_PARAM(T1)
, typename BOOST_MPL_AUX_NA_PARAM(T2) , typename BOOST_MPL_AUX_NA_PARAM(T2)
, typename BOOST_MPL_AUX_NA_PARAM(T3)
> >
struct if_ struct if_
{ {
@@ -56,18 +58,18 @@ struct if_
// agurt, 02/jan/03: two-step 'type' definition for the sake of aCC // agurt, 02/jan/03: two-step 'type' definition for the sake of aCC
typedef if_c< typedef if_c<
#if defined(BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS) #if defined(BOOST_MPL_CFG_BCC_INTEGRAL_CONSTANTS)
BOOST_MPL_AUX_VALUE_WKND(C)::value BOOST_MPL_AUX_VALUE_WKND(T1)::value
#else #else
BOOST_MPL_AUX_STATIC_CAST(bool, BOOST_MPL_AUX_VALUE_WKND(C)::value) BOOST_MPL_AUX_STATIC_CAST(bool, BOOST_MPL_AUX_VALUE_WKND(T1)::value)
#endif #endif
, T1
, T2 , T2
, T3
> almost_type_; > almost_type_;
public: public:
typedef typename almost_type_::type type; typedef typename almost_type_::type type;
BOOST_MPL_AUX_LAMBDA_SUPPORT(3,if_,(C,T1,T2)) BOOST_MPL_AUX_LAMBDA_SUPPORT(3,if_,(T1,T2,T3))
}; };
#else #else