]> git.mxchange.org Git - simgear.git/blob - simgear/compatibility/sstream
d531aac336eb09b6298ad86083899801f5a23259
[simgear.git] / simgear / compatibility / sstream
1
2 #ifndef __SG_SSTREAM
3 #define __SG_SSTREAM 1
4
5 # include <iostream>
6 # include <strstream>
7 # include <string>
8
9 namespace std {
10
11    class ostringstream : public ostrstream {
12    public:
13       ~ostringstream() { delete ostrstream::str(); }
14       std::string str() { return string(ostrstream::str()) + '\0'; }
15    };
16
17
18    class istringstream : public istrstream {
19    };
20
21 };
22
23 #endif // !__SG_SSTREAM
24