I want to do something like this:
class foo
{
private:
class foo2
{
...
void Print (ostream & out)
....
};
ostream & operator << (ostream &out, const foo & temp);
public:
...
}
I want it so class foo can cout << foo2 objects only in the foo class. But when I try to do this, it gives me problems. Is there a way to do this, or should I just rely on a basic void Print()
method?
Mistro116