[Bug libstdc++/66771] [5/6 Regression] -std=c++11 doesn't work
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Mon Jul 6 08:09:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66771
Jonathan Wakely <redi at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |INVALID
--- Comment #6 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to H.J. Lu from comment #3)
> if (m_input.getline(buf, sizeof(buf)) == 0)
> return false;
This is not valid in C++11, and was poor style even in C++03.
The portable way to write it is:
if (m_input.getline(buf, sizeof(buf)))
return false;
More information about the Gcc-bugs
mailing list