
2 May
2011
2 May
'11
9:38 p.m.
2011/4/29 Max Hölzer <max.hoelzer@yahoo.com>:
Adding a template class superable would avoid one to write the explicit base or super class name.
Unfortunately, this breaks down once you get to templates: template <typename T> class Foo : superable<typename Bar<T>::type> { // the base is dependant, so you still have to typedef typename superable<typename Bar<T>::type>::super super; }; So IMHO the question is whether class C : boost::superable<B> { is really superior to class C : B { typedef B super; and I'd have to say no. ~ Scott