12 Jun
2007
12 Jun
'07
9:18 p.m.
Aleksey Gurtovoy wrote:
Yuval Ronen writes:
However, I don't need mpl::map as output, any Forward Sequence will suffice (as this is what make_variant_over requires). So is mpl::fold the answer here?
No, you can still use 'transform', like this:
typedef mpl::front_inserter< mpl::vector0<> > inserter; typedef mpl::transform< my_map, make_ptr_pair1mpl::_1, inserter >::type ptr_pair_seq1;
Great, thanks.