Here is the code-version of the question:
template <class T>
class Foo
{
//Stuff
}
Foo<Foo*> object;
Compiling this gives me:
"a template argument 1 is invalid error."
My question is,
Foo<Foo<Foo<.....>>> but please let me know the correct reason if I'm incorrect in my thinking.Also I tried a forward declaration of Foo, and that did not work.
Foo need a template argument, you can:
Foo<Foo<int>*> object;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With