
6 Jan
2012
6 Jan
'12
5:32 p.m.
On 01/06/2012 05:49 PM, Allan Nielsen wrote:
Is there a simpler way to let template arguments propagate through derived classes?
I'm sorry I don't understand the question. Either use inheritance or repeat the name. template<class T> struct A { typedef T type; }; template<class A> struct B : A { }; or template<class A> struct B { typedef typename A::type type; }; you can do the same with non-type template parameters.