Last fixes

This commit is contained in:
ehofman
2003-10-20 12:14:10 +00:00
parent 79d5bf66a7
commit 94ac87f4f5

View File

@@ -14,14 +14,11 @@ namespace std {
public:
ostringstream() { sstr = new std::ostrstream; }
ostringstream(const string &str, int=ios::out) {
sstr = new ostrstream((char *)str.c_str(), str.size(), ios::out);
}
~ostringstream() { delete sstr->str(); delete sstr; }
std::string str() {
std::string _str = std::string(sstr->str()); _str.append('\0');
return _str;
ostringstream(const string &str, int mode=ios::out) {
sstr = new ostrstream((char *)str.c_str(), str.size(), mode);
}
~ostringstream() { delete sstr; }
std::string str() { return std::string(sstr->str()); }
int pcount() { return sstr->pcount(); }
};