Boost logo

Boost Users :

Subject: [Boost-users] [mpl] Reconstructing an mpl::list from mpl::l_item's.
From: AJG (plus.ajg_at_[hidden])
Date: 2010-08-19 14:19:34


Hi there,

Using mpl::remove, et al. I can eliminate types from an mpl::list. However, it
appears that the result is not an actual mpl::list, but some sort of indexed,
cons-like structure composed of mpl::l_item types. Is there a way to recreate an
mpl::list proper using these l_item's?

E.g.

typedef mpl::list<foo, bar, qux> L;
typedef mpl::remove<L, bar>::type R;
typedef mpl::???<R>::type => mpl::list<foo, qux>;

Thanks!


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