S
Steve:
Hi,
With a normal class, I can do the following:
---
class Foo;
void func( Foo* param );
class Foo
{
//defined here
};
---
How do I declare a templated class before the actual definition?
---
class WStr; // Does not work, the compiler complains about
redifinition.
void func( WStr* param );
template< class T >
class Tmpl
{
//defined here
T* t;
};
typedef Tmpl< char > WStr;
---
Thank you,
Steve
With a normal class, I can do the following:
---
class Foo;
void func( Foo* param );
class Foo
{
//defined here
};
---
How do I declare a templated class before the actual definition?
---
class WStr; // Does not work, the compiler complains about
redifinition.
void func( WStr* param );
template< class T >
class Tmpl
{
//defined here
T* t;
};
typedef Tmpl< char > WStr;
---
Thank you,
Steve