This is an archive of the discontinued LLVM Phabricator instance.

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

Reviewers
EricWF
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 Timeline

mclow.lists retitled this revision from to Proposed resolution for LWG 2369: constexpr max(initializer_list) vs max_element.
mclow.lists updated this object.
mclow.lists edited the test plan for this revision. (Show Details)
mclow.lists added a reviewer: EricWF.
mclow.lists added a subscriber: Unknown Object (MLST).
EricWF accepted this revision.Apr 30 2015, 6:34 PM
EricWF edited edge metadata.

LGTM.

test/std/algorithms/alg.sorting/alg.min.max/minmax_element_comp.pass.cpp
91

You could use C++14's static assert with no error message here :P.

This revision is now accepted and ready to land.Apr 30 2015, 6:34 PM
mclow.lists closed this revision.May 18 2015, 11:32 AM

Committed as r236952