[Bug libstdc++/45488] lower_bound iterator must be default constructible
paolo dot carlini at oracle dot com
gcc-bugzilla@gcc.gnu.org
Wed Sep 1 20:53:00 GMT 2010
------- Comment #2 from paolo dot carlini at oracle dot com 2010-09-01 20:53 -------
Granted, __middle is not used after the loop, thus moving the declaration
inside the loop seems a tad cleaner. But then we should do the change
consistently for both lower_bound overloads and for upper_bound. Please test
that, simply use _ForwardIterator __middle = __first; and send to the mailing
list a real patch, if you want your name in the ChangeLog. Thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45488
More information about the Gcc-bugs
mailing list