Template and typedef
Julien Allali
allali@univ-mlv.fr
Fri Dec 14 02:16:00 GMT 2001
Hi,
I'm currently work with template
and I tried to do something like this:
template<class A, class B>
class C
{
.......
};
template<class T>
typedef C<T,B> toto;
g++-3.0 say that I can't do template with typedef. So
I take the Stroustrup and I see that the grammar
allow this !
I know that a solution is
template<class T>
class toto : C<T,B>
{...};
But this is really not a good way :)
So does someone got a comment or suggestion ?
Julien Allali.
PS: if this functionnality can be present in futur release, it'll be
realy nice.
More information about the Gcc
mailing list