
10 Jun
2005
10 Jun
'05
1:44 a.m.
Hi, I've been trying boost::mpl for my current project and hit a problem. Sorry if it is an already known issue. So if we have our own metafucntion: template< typename T, typename Value > func : mpl::void_ {}; it works fine: typedef mpl::find_if< mpl::vector< int, char >, func< mpl::_1, mpl::int_< 10 > >::type iter; ... But if I try to use integral value instead: template< typename T, int Value > func : mpl::void_ {}; and typedef mpl::find_if< mpl::vector< int, char >, func< mpl::_1, 10
::type iter;
It fails on gcc 3.3.3 nor 3.4.3. So is it a limitation on language or compiler or library? I mean should second variant compile in generic? Regards, Vyacheslav