"Nobody" <no****@cox.net> wrote in message
news:%lFWb.28941$1O.21160@fed1read05...
what is the syntax for a forward declaration of a template class?
normally I declare all my classes at the top of the header:
class CClass1;
class CClass2;
class CClass1 : public CBase
{
};
class CClass2 : public CBase
{
}
this doesn't seem to work with a template class? I get all sorts of
errors.
template <class T>
class X;
is perfectly good template class forward declaration.
If that doesn't help then perhaps you should post the code you are actually
having trouble with. And mention the compiler since many compilers have a
few quirks when it comes to templates.
john