G
Gaijinco
I have used before:
class A
{
};
operator& operator<<(operator& out, A& a);
cout << A();
I used thinking this spent fewer memory than doing something like:
A a;
cout << a;
Now I tried this and it worked:
cout << int(0);
Is this compiler-dependent or is a language feature?
class A
{
};
operator& operator<<(operator& out, A& a);
cout << A();
I used thinking this spent fewer memory than doing something like:
A a;
cout << a;
Now I tried this and it worked:
cout << int(0);
Is this compiler-dependent or is a language feature?