27 Oct
2005
27 Oct
'05
1:28 p.m.
Hi, how is it possible to inherit from all items inside mpl::vector?
template< typename V > class multi : .... // ????? {};
typedef multi < mpl::vector< A ,B, C > > multi _t; multi_t m; // m has all public and protected member functions of A, B and C
struct empty {}; typedef mpl::fold< V, empty, mpl::inherit<_,_>
::type multi_t;
HTH, -- Dave Abrahams Boost Consulting www.boost-consulting.com