diff src/strfns.cc @ 5765:7ba9ad1fec11

[project @ 2006-04-17 05:05:15 by jwe]
author jwe
date Mon, 17 Apr 2006 05:05:17 +0000
parents 6286c96121c2
children 080c08b192d8
line wrap: on
line diff
--- a/src/strfns.cc	Sun Apr 16 19:10:01 2006 +0000
+++ b/src/strfns.cc	Mon Apr 17 05:05:17 2006 +0000
@@ -26,6 +26,7 @@
 #endif
 
 #include <cctype>
+#include <sstream>
 
 #include "dMatrix.h"
 
@@ -393,7 +394,7 @@
 
       if (! error_state)
 	{
-	  OSSTREAM buf;
+	  std::ostringstream buf;
 
 	  if (nargin == 1)
 	    // Let list_in_columns query terminal width.
@@ -408,11 +409,7 @@
 		error ("list_in_columns: expecting width to be an integer");
 	    }
 
-	  buf << OSSTREAM_ENDS;
-
-	  retval = OSSTREAM_STR (buf);
-
-	  OSSTREAM_FREEZE (buf);
+	  retval = buf.str ();
 	}
       else
 	error ("list_in_columns: expecting cellstr or char array");