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

--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> 2010-11-23 
22:00:07 UTC ---
(In reply to comment #2)
> 
> Oh, I guess you are right. Standard doesn't specify behaviour for cin's
> streambuf type. It is implementation-specific. It worked for me on different
> platforms and compilers. I was also reading it's definition on cplusplus.com
> but I should look what standard says.

cplusplus.com has always been a poor reference

> Anyway, it would be nice if it worked as I expected. cin.ignore() statements
> inside loops could be avoided.

It couldn't be avoided in portable code, because other implementation still
might not have the semantics given by cplusplus.com

Reply via email to