F
flopbucket
Hi,
How can I forward declare a class that is in a different namespace? As
a simple example:
classs Foo
{
std::string *string;
};
With other classes, I could always "class Y;" at the top to forward
declare, but how can I forward declare std::string? Is it possible?
I tried
class std::string;
but that did not work.
Any information appreciated.
Thansk
How can I forward declare a class that is in a different namespace? As
a simple example:
classs Foo
{
std::string *string;
};
With other classes, I could always "class Y;" at the top to forward
declare, but how can I forward declare std::string? Is it possible?
I tried
class std::string;
but that did not work.
Any information appreciated.
Thansk