Boost logo

Boost Users :

Subject: [Boost-users] boost::mpl::set and boost::mpl::sort -- does not compile -- any help appreciated
From: peter_foelsche_at_[hidden]
Date: 2008-10-17 16:15:25

Somehow I need an ordered set.

How to do this?

Any help appreciated.





#include <boost/mpl/set.hpp>

#include <boost/mpl/sort.hpp>



typedef boost::mpl::sort<






>::type CFirstSet;



int main(int argc, char **argv)

{ CFirstSet s;



"The first point (using an init() function in preference to a constructor) is bogus. Using constructors and exception handling is a more general and systematic way of dealing with resource acquisition and initialization errors. This style is a relic of pre-exception C++." -- Stroustrup


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at