Mercurial > octave
diff src/oct-strstrm.h @ 5765:7ba9ad1fec11
[project @ 2006-04-17 05:05:15 by jwe]
author | jwe |
---|---|
date | Mon, 17 Apr 2006 05:05:17 +0000 |
parents | 4c8a2e4e0717 |
children | 93c65f2a5668 |
line wrap: on
line diff
--- a/src/oct-strstrm.h Sun Apr 16 19:10:01 2006 +0000 +++ b/src/oct-strstrm.h Mon Apr 17 05:05:17 2006 +0000 @@ -25,8 +25,7 @@ #define octave_octave_strstream_h 1 #include <string> - -#include "lo-sstream.h" +#include <sstream> #include "oct-stream.h" @@ -118,7 +117,7 @@ private: - ISSTREAM is; + std::istringstream is; // No copying! @@ -150,13 +149,7 @@ std::ostream *output_stream (void) { return &os; } - std::string str (void) - { - os << OSSTREAM_ENDS; - std::string retval = OSSTREAM_STR (os); - OSSTREAM_FREEZE (os); - return retval; - } + std::string str (void) { return os.str (); } std::streambuf *rdbuf (void) { return os ? os.rdbuf () : 0; } @@ -170,7 +163,7 @@ private: - OSSTREAM os; + std::ostringstream os; // No copying!