
6 Apr
2008
6 Apr
'08
3:35 a.m.
AMDG Sergei Politov wrote:
For provided example, the usage of this class is the following: template<class T> struct make_vector { typedef std::vector<T> type; };
typedef mstd::map_gen<boost::mpl::vector<int, char>, make_vector>::type my_map;
You should probably use an mpl lambda expression mstd::map_gen<boost::mpl::vector<int, char>, make_vector<boost::mpl::_1>
::type
In other words it takes some fusion sequence and metafunction. MPL sequence? There shouldn't be any runtime information associated with the key.
In Christ, Steven Watanabe