And don't forget to free up the used memory.

This commit is contained in:
ehofman
2003-10-20 19:38:27 +00:00
parent 66fb6b5a1c
commit 19815c3bce

View File

@@ -10,6 +10,7 @@ namespace std {
class ostringstream : public ostrstream {
public:
~ostringstream() { delete ostrstream::str(); }
std::string str() { return string(ostrstream::str()) + '\0'; }
};