[type_traits] conditional transformation

Hi, In 20.7.6.6 Other transformations [meta.trans.other] C++0x introduce a conditional template that is equicalent to mpl::if_c template <bool B, class T, class F> struct conditional; If B is true, the member typedef type shall equal T. If B is false, the member typedef type shall equal F. Could this be added to the Boost.TypeTraits? Thanks, _____________________ Vicente Juan Botet Escribá http://viboes.blogspot.com/

In 20.7.6.6 Other transformations [meta.trans.other] C++0x introduce a conditional template that is equicalent to mpl::if_c template <bool B, class T, class F> struct conditional;
If B is true, the member typedef type shall equal T. If B is false, the member typedef type shall equal F.
Could this be added to the Boost.TypeTraits?
Will do. John.

----- Original Message ----- From: "John Maddock" <boost.regex@virgin.net> To: <boost@lists.boost.org> Sent: Friday, September 24, 2010 7:14 PM Subject: Re: [boost] [type_traits] conditional transformation
Could this be added to the Boost.TypeTraits?
Added with revision #65575.
Thanks, Vicente
participants (2)
-
John Maddock
-
vicente.botet