This is the mail archive of the
libstdc++@sourceware.cygnus.com
mailing list for the libstdc++ project.
Re: ofstream::seekp(0) does not work
- To: Benjamin Kosnik <bkoz at fidel dot cygnus dot com>
- Subject: Re: ofstream::seekp(0) does not work
- From: Bruno dot Voigt at ic3s dot de
- Date: Thu, 23 Dec 1999 10:54:29 +0100
- Cc: libstdc++ at sourceware dot cygnus dot com
Well,
in the meantime I came to the conclusion that
I wanted "seekp(0, ios_base::beg)" in the first place.
Thanks for your explanation,
the changed testcase now works satisfying.
cu, Bruno
please post this to the list. We might as well start discussing this
now. It's my opinion that your code is incorrect: that seekp(0) does
not meet the restraints of seekp as defined in the standard.
Where seekp(pos) is undefined if pos is not the result of a previous
tellg or seekoff. It was my choice to enforce this: I know that Plum
Hall does not.