|
Boost Users : |
Subject: Re: [Boost-users] combining mpl sequences
From: Karsten Ahnert (karsten.ahnert_at_[hidden])
Date: 2010-09-05 16:03:27
>
> Try:
>
> typedef copy<VecB, back_inserter<VecA>> all_containers;
>
copy was a good hint:). I only had to introduce a custom inserter:
template< class T > class containers :
public mpl::vector<
std::vector< T > , std::list< T > , std::deque< T >
> { };
typedef mpl::vector< float , double , long double >::type my_types;
typedef mpl::copy
<
my_types ,
mpl::inserter
<
mpl::vector0<> ,
mpl::insert_range
<
mpl::_1 ,
mpl::end< mpl::_1 > ,
containers< mpl::_2 >
>
>
>::type all_containers;
which solved my problem.
Best regards,
Karsten
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