Hi,
I have a simple nit-picky question. It would be nice for a stringstream to have a member function which returns a C style string (just like a string does) so I could do this,
instead of this,
Is it possible to do something like this?
I have a simple nit-picky question. It would be nice for a stringstream to have a member function which returns a C style string (just like a string does) so I could do this,
Code:
stringstream ss; ss << "Etc..."; ss.c_str()
Code:
stringstream ss; ss << "Etc..."; ss.str().c_str()
Comment