Boost logo

Boost :

From: Richard Crossley (rdc_at_[hidden])
Date: 2003-11-15 20:25:28


Hi Sebastian,

> template <typename T = boost::mpl::_1>
> struct tag{};
>
> template <typename C>
> struct mv{
> template <typename T>
> void operator()(tag<T>)
> {
> m_c.insert(std::make_pair(T::_key, typename
C::value_type(new T)));
> }
> mv(C& v):m_c(v){}
> private:
> C& m_c;
> };

Change value_type to mapped_type. e.g.

m_c.insert(std::make_pair(T::_key, typename C::mapped_type(new T)));

Regards,

Richard.


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