------- Comment #2 from elizbus at yahoo dot com 2009-07-13 17:24 ------- (In reply to comment #1) > Your assumption is wrong, in the sense that nothing in the Standard mandates > it > (likewise in C, for plain C streams, by the way) and in fact most, if not all, > current good performing implementation do not satisfy it.
If I were to add a call to tellg() prior to appending additional data to the stream, the put pointer is now at the correct location and the output file now has all ten characters written to it, and not five. If the pointers are independent, then this should not happen. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40732