diff src/oct-stdstrm.h @ 3652:25e84fcef38a

[project @ 2000-03-31 08:50:48 by jwe]
author jwe
date Fri, 31 Mar 2000 08:50:50 +0000
parents 8fbe6931e709
children 08fe5f74c7d4
line wrap: on
line diff
--- a/src/oct-stdstrm.h
+++ b/src/oct-stdstrm.h
@@ -94,7 +94,8 @@
   std::ostream *output_stream (void) { return 0; }
 
   // XXX FIXME XXX -- should not have to cast away const here.
-  c_file_ptr_buf *rdbuf (void) const { return is ? is->rdbuf () : 0; }
+  c_file_ptr_buf *rdbuf (void) const
+    { return is ? (const_cast<i_c_file_ptr_stream *> (is))->rdbuf () : 0; }
 
   bool bad (void) const { return is ? is->bad () : true; }
 
@@ -104,6 +105,8 @@
 	is->clear ();
     }
 
+  void do_close (void);
+
 protected:
 
   i_c_file_ptr_stream *is;
@@ -154,6 +157,8 @@
 	os->clear ();
     }
 
+  void do_close (void);
+
 protected:
 
   o_c_file_ptr_stream *os;