|
Boost Users : |
Subject: [Boost-users] fusion and mpl
From: Peter Foelsche (peter_foelsche_at_[hidden])
Date: 2010-01-07 21:00:08
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;
I need to have runtime access with constant index:
CVector s;
get<0>(s) = 1.0;
std::cout << get<0>(s) << "\n";
I need to be able to retrieve the type at compile time:
typedef CGetType<CVector, boost::mpl::long_<0> >::type CFirstType;
I already wrote something like this using std::pair as the tuple but I'm
running into problems storing reference types on Windows.
Peter
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