|
Boost Users : |
Subject: Re: [Boost-users] [mpl][fusion] How to transform vector_c into std::vector?
From: TONGARI J (tongari95_at_[hidden])
Date: 2013-11-28 00:09:04
2013/11/28 Mostafa <mostafa_working_away_at_[hidden]>
> How does one transform an mpl:vector_c into a regular std::vector?
>
> Sample input:
>
> typedef mpl::vector<int, int_<10>, int_<11>, int_<12> > some_vector_c;
>
Perhaps:
std::vector<int> v;
fusion::for_each(some_vector_c(), [&v](int val){v.push_back(val);});
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