Boost logo

Boost Users :

From: Alfred Kohl (alfred.kohl_at_[hidden])
Date: 2008-05-22 13:43:07


Hi!

I'd like to use MPL to remove elements of a set from another set.
E.g.:

using boost::mpl::set;
struct a {};
struct b {};
struct c {};
typedef set<a, b, c> input;
typedef set<b, c> remove_these;

typedef boost::mpl::remove<input, remove_these>::type result;

And result should be equal(?) to set<a>.
Any idea how to do this?

I'm a newbie on MPL terrain and it is quite brain-twisting... (I could use a beer to relief some strain)

TIA

Alfred

-- 
Desperate Housewives - das Spiel!
Pikante Skandale, schockierende Details unter: http://flat.games.gmx.de

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