diff liboctave/dim-vector.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 74ca56e4414c
line wrap: on
line diff
--- a/liboctave/dim-vector.h
+++ b/liboctave/dim-vector.h
@@ -25,9 +25,9 @@
 #define octave_dim_vector_h 1
 
 #include <cassert>
+#include <sstream>
 #include <string>
 
-#include "lo-sstream.h"
 #include "oct-types.h"
 
 class
@@ -211,7 +211,7 @@
 
   std::string str (char sep = 'x') const
   {
-    OSSTREAM buf;
+    std::ostringstream buf;
 
     for (int i = 0; i < length (); i++)
       {
@@ -221,11 +221,7 @@
 	  buf << sep;
       }
 
-    buf << OSSTREAM_ENDS;
-
-    std::string retval = OSSTREAM_STR (buf);
-
-    OSSTREAM_FREEZE (buf);
+    std::string retval = buf.str ();
 
     return retval;
   }