dhar...@gmail.com
unread,May 22, 2013, 2:29:53 PM5/22/13You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hi
template <class T> class classA { .... };
template <class U, class V> class classB
{ classA<U> A;
classA<V> B;
}
that compiles !
------------------------------------
template <class T> class classC : classA<T> { .... };
classB<TObject *, TList *> instanciates a classA object for both classes TObject *, TList *.
I would like classB<TObject *, TList *> to instanciate classC<TObject *> and classC<TObject *> instead of classA<TObject *> and classA<TList *>...
something like :
template <class U, class V, class W = classA> class classB
{ W<U> A;
W<V> B;
}
that does not compile !
the compiler indicates that parameters template of classA must be specified...
obviously...
------------------------------------
How to ?
Thx by advance...
David