Boost logo

Boost :

From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2008-04-05 23:35:58


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk