RE: [boost] Re: [MPL] Making Tuples

2002-12-17 Thread Aleksey Gurtovoy
David A. Greene wrote: Well, that's not creating a boost::tuple. :) I could certainly use mpl::fold or some similar algorithm to create boost::tupleint, boost::tuple...but I'm not sure that really a boost::tuple either. consint, cons...might be closer. Yep, the later will give you

Re: [boost] Re: [MPL] Making Tuples

2002-12-17 Thread David Abrahams
Aleksey Gurtovoy [EMAIL PROTECTED] writes: David A. Greene wrote: Well, that's not creating a boost::tuple. :) I could certainly use mpl::fold or some similar algorithm to create boost::tupleint, boost::tuple...but I'm not sure that really a boost::tuple either. consint, cons...

RE: [boost] Re: [MPL] Making Tuples

2002-12-17 Thread Aleksey Gurtovoy
David Abrahams wrote: Aleksey Gurtovoy [EMAIL PROTECTED] writes: Yep, the later will give you all the functionality of 'boost::tupleint,...' except the constructors and assignment from 'std::pair'. A generator for it is as simple as this: template typename Types struct tuple_gen

Re: [boost] Re: [MPL] Making Tuples

2002-12-16 Thread David A. Greene
Gennadiy Rozental wrote: What's the easiest way of converting an MPL sequence into a tuple type? I seem to recall Dave Abrahams needed this functionality as well. Do I need to construct a bare cons list? Use inherit_linearly like in it's example. Which example is that? Is

RE: [boost] Re: [MPL] Making Tuples

2002-12-16 Thread Rozental, Gennadiy
Which example is that? Is inherit_linearly documented somewhere? -Dave http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/boost/boost/libs/mpl/example/ inherit_linearly.cpp?rev=1.1content-type=text/vnd.viewcvs-markup ___

Re: [boost] Re: [MPL] Making Tuples + minor doc-fix for MPL

2002-12-16 Thread David Abrahams
Terje Slettebø [EMAIL PROTECTED] writes: Well, he asked for a boost::tuple, and this gave a boost::tuple, with the exact same type. The reason I provided it was that he seemed to not be satisfied with a type that behaves the same way as boost::tuple, but don't have the same type. This could