
Johan,
can you please be more specific? MPL has a map construct mpl::map it can be used like:
typedef mpl::map
What is the best practice for creating a map from a type to a value?
Currently I do it like this: ===================================== struct SomeMap { template<typename T> static const std::string& LookUp(); };
template <> const std::string& SomeMap::LookUp<int>() { static const std::string s("int"); return s; } ===================================== ...but this seems far from optimal.
-- System Developer TouchTable AB Tel: +46 (0)31 773 68 12 johan.torp@touchtable.se _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users