[libcxx-commits] [PATCH] D125300: type_traits: use __is_core_convertible in __invokable_r.

Nikolas Klauser via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Fri May 20 17:17:19 PDT 2022


philnik added inline comments.


================
Comment at: libcxx/include/type_traits:3510
       _IsNotSame<_Result, __nat>::value,
-      typename conditional<
-          is_void<_Ret>::value,
-          true_type,
-          is_convertible<_Result, _Ret>
-      >::type,
-      false_type
-  >::type;
+      typename conditional< is_void<_Ret>::value, true_type, __is_core_convertible<_Result, _Ret> >::type,
+      false_type >::type;
----------------
Well, that's a lot shorter. Although I have to say `__is_core_convertible` isn't a very intuitive name. Is there any reason it is called that @EricWF?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125300/new/

https://reviews.llvm.org/D125300



More information about the libcxx-commits mailing list