Re: [boost] MPL:Possible Placeholder problem with transform & if_(?)

28 Jul
2005
28 Jul
'05
8:36 p.m.
On Behalf Of Aleksey Gurtovoy
Brian Braatz writes:
Either something strange is happening with arg<> and transform or I did not write this code correctly. ( :) )
The latter :). By requesting '::type' on a metafunction you are immediately instantiating it with the placeholder argument(s), which is not what you want. Try
typedef mpl::transform< vec_t , mpl::if_< , boost::is_same<mpl::_1, A> , YES< mpl::_1 > , NO< mpl::_1 > > >::type result;
[Brian Braatz Writes:] THANK YOU - This is very helpful (in many ways) :)
7257
Age (days ago)
7257
Last active (days ago)
0 comments
1 participants
participants (1)
-
Brian Braatz