# HG changeset patch # User David Grundberg # Date 1257891458 18000 # Node ID 3ccd3a03944c7b7e0761ed50a3f48c1c9b7d8f8c # Parent 0d4613a736e9390f72d550d0ed0281cce4639cee Fix fourth argument from sscanf diff --git a/src/ChangeLog b/src/ChangeLog --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2009-11-10 David Grundberg + + * oct-strstrm.h (octave_base_strstream::tell): Declare virtual. + (octave_istrstream::tell): New method. + 2009-11-10 John W. Eaton * Makefile.am, OPERATORS/module.mk, TEMPLATE-INST/module.mk, diff --git a/src/oct-strstrm.h b/src/oct-strstrm.h --- a/src/oct-strstrm.h +++ b/src/oct-strstrm.h @@ -45,7 +45,7 @@ // Return current stream position. - long tell (void); + virtual long tell (void); // The name of the file. @@ -105,6 +105,8 @@ std::ostream *output_stream (void) { return 0; } + long tell (void) { return is.tellg (); } + std::streambuf *rdbuf (void) { return is ? is.rdbuf () : 0; } bool bad (void) const { return is.bad (); }