
15 May
2010
15 May
'10
2:26 p.m.
Dear boost users,
I'm clearly missing something w.r.t. mpl_inherit and lamba functions. Could someone enlighten me as to why the following code fails to compile? The integer template argument in the lambda expression seems to be the cause?
//--------------------------
#include
#include #include #include using namespace boost; using namespace boost::mpl::placeholders;
template
struct Wrap { T value; }; You can't have lambda meta-functions with integral types. Use a wrapped integer
Peter Nyssen wrote: like boost::mpl::int_ or bosot::mpl::integral_c -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35