This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: seek bug in stringstream?
- To: Benjamin Kosnik <bkoz at cygnus dot com>
- Subject: Re: seek bug in stringstream?
- From: larsbj at lyx dot org (Lars Gullik Bjønnes)
- Date: 24 Mar 2000 11:38:10 +0100
- Cc: libstdc++ at sourceware dot cygnus dot com
- References: <Pine.SOL.3.91.1000323220619.26141A-100000@cse.cygnus.com>
Benjamin Kosnik <bkoz@cygnus.com> writes:
| > gives:
| >
| > -1
| > 5
| > 12
|
| this is correct. if gptr() is not valid, pos_type(-1) is returned.
From my reading of the source gptr is valid and set to beg.
|
| > 0
| > 5
| > 12
| > 0
| > 5
| > 12
|
| ... these should be -1 not 0.
Why?
Seems completely inlogical.
| I believe CVS libstdc++ is correct now.
You obviously interpret the standard different from me.
Do we have an authorative source?
Lgb