Mercurial > hg > octave-lyh
diff liboctave/DASSL.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/DASSL.cc +++ b/liboctave/DASSL.cc @@ -31,11 +31,10 @@ #include <cfloat> #include <cmath> -#include <strstream> - #include "DASSL.h" #include "f77-fcn.h" #include "lo-error.h" +#include "lo-sstream.h" typedef int (*dassl_fcn_ptr) (const double&, const double*, const double*, double*, int&, double*, int*); @@ -487,11 +486,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) {