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: ofstream::seekp(0) does not work



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.




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