Hello all...
In the god old times when a few compilers supported namespaces you could put incomplete declarations in headers file, e.g.:
class ostream;
class someclass {
ostream* ptr
};
Now the problem is that when I try to write:
class std::ostream;
class someclass {
std::ostream* ptr;
};
the compiler (g++ 3.4) gives me a warning that it expects a type-name in the line with "class std::ostream;". What to do?