|
Boost Users : |
Subject: Re: [Boost-users] [MPL] sequence from paramater pack
From: Michael Marcin (mike.marcin_at_[hidden])
Date: 2013-10-13 23:40:08
On 10/13/2013 4:10 PM, Nathan Ridge wrote:
>> How do you construct a MPL sequence from a variadic template parameter pack?
>
> Should be as simple as:
>
>
> #include <boost/mpl/vector.hpp>
>
> template <typename... Args>
> struct make_mpl_vector
> {
> typedef boost::mpl::vector<Args...> type;
> };
>
> typedef make_mpl_vector<int, float, char>::type type;
>
Thanks just passing Args... to mpl::vector works wonderfully.
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