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
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...
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
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
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
___
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