[PATCH] [libcxx] Support UDTs convertible to arithmetic types in <cmath>

Marshall Clow mclow.lists at gmail.com
Mon Oct 27 07:33:34 PDT 2014


The `__promote` and `lazy_enable_if` changes have already gone into libc++ (I believe) as part of another patch.

================
Comment at: include/type_traits:1180
@@ -1182,2 +1179,3 @@
 
-template <class _Tp>
+float __numeric_test(float);
+double __numeric_test(char);
----------------
Is there a reason that these functions are no longer static members?

http://reviews.llvm.org/D5942






More information about the cfe-commits mailing list