[Bug libstdc++/49022] [C++0x][DR 2058] std::begin and std::end specialized for std::valarray with some operators are missing.
paolo.carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Tue Jun 14 13:53:00 GMT 2011
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49022
--- Comment #23 from Paolo Carlini <paolo.carlini at oracle dot com> 2011-06-14 13:50:56 UTC ---
Ok, now I see, it's the operator[] of _BinBase which returns by value, I
overlooked that. Thus, fine it seems confirmed that range-based for-loop itself
is Ok, but making sure we have return by const ref everywhere for _Expr seems
unmanageable.
Thus, again, confirmed that I agree with removing the overloads.
More information about the Gcc-bugs
mailing list