This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: seek bug in stringstream?
Nathan Myers <ncm@cantrip.org> writes:
| I agree with your assessment. Please send a patch.
I think this holds:
Index: bits/sstream.tcc
===================================================================
RCS file: /cvs/libstdc++/libstdc++/bits/sstream.tcc,v
retrieving revision 1.31
diff -u -r1.31 sstream.tcc
--- sstream.tcc 2000/03/28 04:21:42 1.31
+++ sstream.tcc 2000/04/14 21:27:34
@@ -123,7 +123,7 @@
bool __testout = __mode & ios_base::out && _M_mode & ios_base::out;
bool __testboth = __testin && __testout && __way != ios_base::cur;
- if (_M_buf_size && ((__testin != __testout) || __testboth))
+ if ((__testin != __testout) || __testboth)
{
char_type* __beg = _M_buf;
char_type* __curi = NULL;
2000-04-15 Lars Gullik Bjønnes <larsbj@lyx.org>
* bits/sstream.tcc (seekoff): do not limit the use to only when
_M_buf_size > 0 (_M_buf_size removed)
Lgb