------- Comment #5 from paolo dot carlini at oracle dot com 2010-09-07 17:49 ------- For sure we cannot add virtual functions to basic_streambuf without breaking the ABI. Also, getline certainly isn't just fgets, takes a delim char, uses traits, etc. Sure, anyway, in principle you can often speed-up special cases, but also given that in ~5-7 years nobody else reported anything about the performance of the synced getline, I don't think anything is going to happen anytime soon, I could keep this open, but it would be futile, we have a lot of work to do, for C++0x, in particular.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45574