|
Boost : |
Subject: Re: [boost] generate tuples by mpl -- should I use fusion?
From: Stefan Strasser (strasser_at_[hidden])
Date: 2010-01-07 14:33:18
Am Friday 08 January 2010 03:02:52 schrieb Peter Foelsche:
> I need to be able to convert a mpl sequence into something like a tuple:
>
> typedef boost::mpl::vector<double> CMplSequence;
> typedef CCreateVectorFromMpl<CMplSequence>::type CVector;
typedef boost::mpl::vector<double> CMplSequence;
typedef typename boost::fusion::results_of::as_vector<CMplSequence>::type
tuple_type;
tuple_type tuple(2.5);
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk