A
Anand Hariharan
Missing a .str() caused me two hours of work today. The code was like
so:
ostringstream ss;
ss << "Whatever " << Foo;
ofstream MyFile;
// ...
MyFile << ss; // should have been ss.str()
Am wondering why a diagnostic isn't required to catch this error? How
big a deal is it for an implementation to catch this?
thanks,
- Anand
so:
ostringstream ss;
ss << "Whatever " << Foo;
ofstream MyFile;
// ...
MyFile << ss; // should have been ss.str()
Am wondering why a diagnostic isn't required to catch this error? How
big a deal is it for an implementation to catch this?
thanks,
- Anand