Boost logo

Boost Users :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-07-10 00:03:38


AMDG

Cory Nelson wrote:
> Is there anything in boost that creates a tuple of the types in a MPL sequence
#include <boost/tuple/tuple.hpp>
#include <boost/mpl/vector.hpp>
#include <boost/mpl/reverse_fold.hpp>
#include <boost/mpl/assert.hpp>
#include <boost/type_traits/is_same.hpp>

typedef boost::mpl::vector<int, char, double> types;

typedef boost::mpl::reverse_fold<types, boost::tuples::null_type,
boost::tuples::cons<boost::mpl::_2, boost::mpl::_1> >::type tuple_type;

In Christ,
Steven Watanabe


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net