Re: [boost] Re: MPL::lambda on MSVC

2003-03-30 Thread David Abrahams
Jaap Suter [EMAIL PROTECTED] writes: The error occurs on the line with the boost static constant. Never mind that, I changed the code after I wrote the message. Here's the code in hopefully better formatting. Looks to me like this code has the exact same problem. -- Dave Abrahams Boost

RE: [boost] Re: MPL Lambda on MSVC 7

2003-01-12 Thread Aleksey Gurtovoy
Jaap Suter wrote: So I tried to come up with the actual smallest example that doesn't compile, even with the LAMBDA_SUPPORT macro. It looks as follows: template class T struct meta_fun_1 { typedef mpl::integral_c typename T::value_type, 0 type; BOOST_MPL_AUX_LAMBDA_SUPPORT( 1,

RE: [boost] Re: [MPL Lambda]

2002-11-22 Thread Aleksey Gurtovoy
David B. Held wrote: For your own metafunctions, you have to intrude them a little bit, but otherwise it works as well: template typename T struct f { typedef T type; BOOST_MPL_AUX_LAMBDA_SUPPORT(1,f,(T)) // here }; [...] I assume it's safe to

Re: [boost] Re: MPL lambda

2002-11-15 Thread Dirk Gerrits
Mat Marcus wrote: Scatter hierarchies can be achieved by using inherit_linearly together with mpl::inherit. See the second example that Aleksey cited *is* an example of a scatter hierarchy. Forgive me, I hadn't realized this. That's just too cool! :) Thanks. Regards, Dirk Gerrits