[Bug c++/59165] gcc looks up begin(), end() for for-range loops for ints in namespace std

redi at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 18 10:56:00 GMT 2013


--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
I think I remember the rationale now: std::begin and std::end only work if
c.begin() and c.end() xist, in which case range-based for will use those
members directly anyway.

More information about the Gcc-bugs mailing list