[libcxx-commits] [libcxx] [libcxx] Unifying __is_trivial_equality_predicate and __is_trivial_plus_operation into __desugars_to (PR #68642)

Louis Dionne via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 10 11:59:30 PDT 2023


================
@@ -353,11 +352,11 @@ struct _LIBCPP_TEMPLATE_VIS equal_to<void>
 #endif
 
 template <class _Tp>
-struct __is_trivial_equality_predicate<equal_to<_Tp>, _Tp, _Tp> : true_type {};
+struct __desugars_to<equal_to<_Tp>, std::equal_to<_Tp>> : true_type {};
----------------
ldionne wrote:

And you don't need to qualify `std::equal_to`, you can use just `equal_to` since it's not a function call, so there is no ADL to disable.

https://github.com/llvm/llvm-project/pull/68642


More information about the libcxx-commits mailing list