This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libstdc++/45628] std::fstream::tellg invalidates I/O buffer



------- Comment #41 from potswa at mac dot com  2010-09-17 19:04 -------
Well, I'm happy if you'd like to merge the diffs. My code was written with the
intent of optimizing the output case, too, but I guess it's not too inefficient
or awkward from the perspective of input only.

I just filed a bug http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45708 about the
requirement to separate reads and writes. I suppose it will be a duplicate, but
maybe it is worded a little better than existing bugs. Although your current
users might know the restriction, I don't think it's really well-documented. I
personally observed this behavior when getting started with iostreams, and it
was quite discouraging. GNU having a large part of the iostreams marketshare, I
wouldn't be surprised if this were a minor stumbling block to iostreams
adoption overall.


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45628


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