http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#2369
This is actually a simplification; since we already had an internal routine that was constexpr.
Paths
| Differential D9409
Proposed resolution for LWG 2369: constexpr max(initializer_list) vs max_element ClosedPublic Authored by mclow.lists on Apr 30 2015, 11:42 AM.
Details
Summary http://www.open-std.org/jtc1/sc22/wg21/docs/lwg-active.html#2369 This is actually a simplification; since we already had an internal routine that was constexpr.
Diff Detail Event Timelinemclow.lists retitled this revision from to Proposed resolution for LWG 2369: constexpr max(initializer_list) vs max_element. mclow.lists updated this object. EricWF edited edge metadata. Comment ActionsLGTM.
This revision is now accepted and ready to land.Apr 30 2015, 6:34 PM
Revision Contents
Diff 24757 include/algorithm
test/std/algorithms/alg.sorting/alg.min.max/max_element.pass.cpp
test/std/algorithms/alg.sorting/alg.min.max/max_element_comp.pass.cpp
test/std/algorithms/alg.sorting/alg.min.max/min_element.pass.cpp
test/std/algorithms/alg.sorting/alg.min.max/min_element_comp.pass.cpp
test/std/algorithms/alg.sorting/alg.min.max/minmax_element.pass.cpp
test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp |
You could use C++14's static assert with no error message here :P.