From 1e0628bc57da0ac56c4c5a651e83f6fcadea743c Mon Sep 17 00:00:00 2001 From: Aleksey Gurtovoy Date: Thu, 2 Jan 2003 22:42:18 +0000 Subject: [PATCH] fix to make aCC happy [SVN r16735] --- include/boost/mpl/if.hpp | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/include/boost/mpl/if.hpp b/include/boost/mpl/if.hpp index d059ad6..a1788ee 100644 --- a/include/boost/mpl/if.hpp +++ b/include/boost/mpl/if.hpp @@ -53,12 +53,17 @@ template< > struct if_ { - typedef typename if_c< + private: + // agurt, 02/jan/03: two-step 'type' definition for the sake of aCC + typedef if_c< BOOST_MPL_AUX_ICE_CAST(bool, BOOST_MPL_AUX_VALUE_WKND(C)::value) , T1 , T2 - >::type type; - + > almost_type_; + + public: + typedef typename almost_type_::type type; + BOOST_MPL_AUX_LAMBDA_SUPPORT(3,if_,(C,T1,T2)) };