¡@

Home 

c++ Programming Glossary: stringstream.str

C++ stringstream, string, and char* conversion confusion

http://stackoverflow.com/questions/1374468/c-stringstream-string-and-char-conversion-confusion

can be boiled down to where does the string returned from stringstream.str .c_str live in memory and why can't it be assigned to a const.. out garbage system PAUSE return 0 The assumption that stringstream.str .c_str could be assigned to a const char led to a bug that took.. string memory stringstream share improve this question stringstream.str returns a temporary string object that's destroyed at the end..