diff src/pr-output.cc @ 4051:b79da8779a0e

[project @ 2002-08-17 19:38:32 by jwe]
author jwe
date Sat, 17 Aug 2002 19:38:33 +0000
parents cfb762dc9259
children 6b96ce9f5743
line wrap: on
line diff
--- a/src/pr-output.cc	Sat Aug 17 02:18:18 2002 +0000
+++ b/src/pr-output.cc	Sat Aug 17 19:38:33 2002 +0000
@@ -31,7 +31,6 @@
 
 #include <iomanip>
 #include <iostream>
-#include <strstream>
 #include <string>
 
 #include "CMatrix.h"
@@ -39,6 +38,7 @@
 #include "cmd-edit.h"
 #include "dMatrix.h"
 #include "lo-mappers.h"
+#include "lo-sstream.h"
 #include "mach-info.h"
 #include "oct-cmplx.h"
 #include "str-vec.h"
@@ -1789,12 +1789,11 @@
 	args(0).print (octave_stdout);
       else
 	{
-	  std::ostrstream buf;
+	  OSSTREAM buf;
 	  args(0).print (buf);
-	  buf << std::ends;
-	  char *tmp = buf.str ();
-	  retval = tmp;
-	  delete [] tmp;
+	  buf << OSSTREAM_ENDS;
+	  retval = OSSTREAM_STR (buf);
+	  OSSTREAM_FREEZE (buf);
 	}
     }
   else