This is the mail archive of the libstdc++@sourceware.cygnus.com mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: seek bug in stringstream?


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]