[libcxx-commits] [PATCH] D60724: [libc++] Make __debug_less::operator() constexpr
Tom Anderson via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Mon Apr 15 10:31:24 PDT 2019
thomasanderson created this revision.
thomasanderson added a reviewer: EricWF.
Herald added subscribers: ldionne, christof.
This is a followup to [1] which added a new `__debug_less::operator()` overload.
[2] added `_LIBCPP_CONSTEXPR_AFTER_CXX17` to the original
`__debug_less::operator()` between the time of writing [1] and landing it. This
change adds `_LIBCPP_CONSTEXPR_AFTER_CXX17` to the new overload too.
[1] https://reviews.llvm.org/rL358423
[2] https://reviews.llvm.org/rL358252
Repository:
rCXX libc++
https://reviews.llvm.org/D60724
Files:
libcxx/include/algorithm
Index: libcxx/include/algorithm
===================================================================
--- libcxx/include/algorithm
+++ libcxx/include/algorithm
@@ -785,6 +785,7 @@
__debug_less(_Compare& __c) : __comp_(__c) {}
template <class _Tp, class _Up>
+ _LIBCPP_CONSTEXPR_AFTER_CXX17
bool operator()(const _Tp& __x, const _Up& __y)
{
bool __r = __comp_(__x, __y);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60724.195222.patch
Type: text/x-patch
Size: 403 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190415/c62db5eb/attachment.bin>
More information about the libcxx-commits
mailing list