S
steprobe
Hi guys,
If I have a class like the following:
template<int Degree>
class MegaClass
{
.....
};
And then I have another class in a seperate header file, myheader.h:
class AnotherClass
{
private:
MegaClass<2> theClass;
};
What is the syntax to forward declare MegaClass<2> in myheader.h? I have
tried a few different ways, none of which have worked, and I couldn't
find anything on google.
Thanks,
Stephen
If I have a class like the following:
template<int Degree>
class MegaClass
{
.....
};
And then I have another class in a seperate header file, myheader.h:
class AnotherClass
{
private:
MegaClass<2> theClass;
};
What is the syntax to forward declare MegaClass<2> in myheader.h? I have
tried a few different ways, none of which have worked, and I couldn't
find anything on google.
Thanks,
Stephen