inheriting from mpl::vector types *solved

Started by
-1 comments, last by Dragon_Strike 16 years, 2 months ago
i would like to have a class that inherits from types specified in mpl::vector something like class A{}; class B{}; template <class TVector> class AB : public TVector // public A, public B typedef mpl::vector<A, B> ABTypes; typedef AB<ABTypes> ABClass; is it possible to get this behavior? my only guess would be to do some recrusive template class that inherits from each element in the vector... EDIT:: found mpl::inherit [Edited by - Dragon_Strike on February 17, 2008 2:44:39 PM]

This topic is closed to new replies.

Advertisement