"Victor Bazarov" <v.********@comAcast.net> wrote in message
news:J0*******************@newsread1.mlpsca01.us.t o.verio.net...
pradosh wrote: Is it possible to typedef a template class?
Technically speaking, there is no such thing as "a template class",
It is obvious that the original poster meant "class template"; but
confusingly, the term "template class" exists as well.
It's sometimes used in place of "class template," but sometimes used to mean
an instance of a class template. David Vandevoorde and Nicolai Josuttis
accept this usage, explain the situation in Chapter 7 of their book C++
Templates, and avoid to use the term :)
If we accept "template class" to mean an instance of a class, then the
answer to the original question is trivial:
typedef OldClass<int> NewClass;
But OP didn't ask that :)
Ali