B
Belebele
Why is the code below giving an error in VC++ 8? Why would the
compiler need to see the definition of Foo to compile:
class Foo;
Foo& g();
void f()
{
g(); // error: use of undefined type 'Foo'
}
?
Thanks
compiler need to see the definition of Foo to compile:
class Foo;
Foo& g();
void f()
{
g(); // error: use of undefined type 'Foo'
}
?
Thanks