From: Jens Maurer (Jens.Maurer_at_[hidden])
Date: 2002-04-25 08:14:15


Paul Mensonides wrote:
> For instance, given the implementation before, Comeau C++ will currently give a
> compile time error for the following:
>
> struct Y {
> template<class> class nested { }; // i.e. nested is a template, not a type
> };

I believe Comeau C++ is right here. A type is a different "meta-type"
than a template, and the language really differentiates those.
(Note the "typename" and "template" keywords required to help
the compiler with that in template definitions.)

Similar for the reverse.

Jens Maurer