multi-inheritance from elements of mpl::vector?
26 Oct
2005
26 Oct
'05
11:59 a.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 Best Regards, Oliver
27 Oct
27 Oct
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
6958
Age (days ago)
6959
Last active (days ago)
1 comments
2 participants
participants (2)
-
David Abrahams
-
Oliver.Kowalke@infineon.com