Mercurial > hg > octave-lyh
diff liboctave/LSODE.cc @ 4051:b79da8779a0e
[project @ 2002-08-17 19:38:32 by jwe]
author | jwe |
---|---|
date | Sat, 17 Aug 2002 19:38:33 +0000 |
parents | a35a3c5d4740 |
children | 6e86256e9c54 |
line wrap: on
line diff
--- a/liboctave/LSODE.cc +++ b/liboctave/LSODE.cc @@ -31,11 +31,10 @@ #include <cfloat> #include <cmath> -#include <strstream> - #include "LSODE.h" #include "f77-fcn.h" #include "lo-error.h" +#include "lo-sstream.h" typedef int (*lsode_fcn_ptr) (const int&, const double&, double*, double*, int&); @@ -286,11 +285,10 @@ { std::string retval; - std::ostrstream buf; - buf << t << ends; - const char *t = buf.str (); - std::string t_curr = t; - delete [] t; + OSSTREAM buf; + buf << t << OSSTREAM_ENDS; + std::string t_curr = OSSTREAM_STR (buf); + OSSTREAM_FREEZE (buf); switch (istate) {