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: MPL::lambda on MSVC

2003-03-30 Thread Jaap Suter
> 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. template < size_t LhsIndex, size_t RhsIndex, int Sign > struct signature { typedef mpl::size_t< LhsIndex > lhs_index;

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

2003-01-12 Thread David Abrahams
"Jaap Suter" <[EMAIL PROTECTED]> writes: >> > Hi, >> >> Hi Jaap, > > Wow, fast reply. Thanks! > >> including MSVC 6.5/7.0 (assuming the latest CVS sources). Or are you using >> the 1.29.0 archive? > > I have the latest CVS sources (I did a full 'get' over the 1_29_0 release in > case you wonder wh

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

[boost] Re: MPL Lambda on MSVC 7

2003-01-12 Thread Jaap Suter
> > Hi, > > Hi Jaap, Wow, fast reply. Thanks! > including MSVC 6.5/7.0 (assuming the latest CVS sources). Or are you using > the 1.29.0 archive? I have the latest CVS sources (I did a full 'get' over the 1_29_0 release in case you wonder where the boost_1_29_0 directory comes from in the path be

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 as

[boost] Re: [MPL Lambda]

2002-11-22 Thread David B. Held
"Aleksey Gurtovoy" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [...] > 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; > BOO

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

Re: [boost] Re: MPL lambda

2002-11-15 Thread Mat Marcus
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.

[boost] Re: MPL lambda

2002-11-15 Thread Dirk Gerrits
Aleksey Gurtovoy wrote: Rozental, Gennadiy wrote: >Also is there gen_scattered/linear_hierarchy implementation >somewhere for MPL sequenses? MPL's 'inherit_linearly' algorithm + 'inherit' metafunction (in the CVS now) cover both of these. Please see http://cvs.sourceforge.net/cgi-bin/viewcvs.