Class generation using inherit_linearly

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
myMemberTypes;
typedef mpl::inherit_linearly< myMemberTypes, mpl::inherit<_1, Wrap<5, _2> > >::type MyClass; //-------------------------- Many thanks, Peter

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
participants (2)
-
joel falcou
-
Peter Nyssen