[Bug libstdc++/60271] [C++1y] std::max(initializer_list<T>) cannot use std::max_element
redi at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Thu Feb 20 15:00:00 GMT 2014
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60271
--- Comment #3 from Jonathan Wakely <redi at gcc dot gnu.org> ---
Even if max_element() isn't made constexpr, we can make __max_element constexpr
(once the FE supports it) and use it directly in max.
It's certainly solvable, I just wanted to create this PR so we don't forget
about it.
More information about the Gcc-bugs
mailing list