[libcxx-commits] [libcxx] d559857 - [libc++][NFC] Update #ifdef comments.

Mark de Wever via libcxx-commits libcxx-commits at lists.llvm.org
Sun Jul 10 05:09:43 PDT 2022


Author: Mark de Wever
Date: 2022-07-10T14:08:35+02:00
New Revision: d55985789b38dde354235d6899b2f117a3cfe344

URL: https://github.com/llvm/llvm-project/commit/d55985789b38dde354235d6899b2f117a3cfe344
DIFF: https://github.com/llvm/llvm-project/commit/d55985789b38dde354235d6899b2f117a3cfe344.diff

LOG: [libc++][NFC] Update #ifdef comments.

These review comments weren't addressed in D129056.

Added: 
    

Modified: 
    libcxx/include/__type_traits/is_convertible.h

Removed: 
    


################################################################################
diff  --git a/libcxx/include/__type_traits/is_convertible.h b/libcxx/include/__type_traits/is_convertible.h
index b45b41caccdd8..7e49cd4e6a31b 100644
--- a/libcxx/include/__type_traits/is_convertible.h
+++ b/libcxx/include/__type_traits/is_convertible.h
@@ -29,7 +29,7 @@ _LIBCPP_BEGIN_NAMESPACE_STD
 template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS is_convertible
     : public integral_constant<bool, __is_convertible_to(_T1, _T2)> {};
 
-#else  // __has_builtin(__is_convertible_to)
+#else  // __has_builtin(__is_convertible_to) && !defined(_LIBCPP_USE_IS_CONVERTIBLE_FALLBACK)
 
 namespace __is_convertible_imp
 {
@@ -96,7 +96,7 @@ template <class _T1, class _T2> struct _LIBCPP_TEMPLATE_VIS is_convertible
     static const size_t __complete_check2 = __is_convertible_check<_T2>::__v;
 };
 
-#endif // __has_builtin(__is_convertible_to)
+#endif // __has_builtin(__is_convertible_to) && !defined(_LIBCPP_USE_IS_CONVERTIBLE_FALLBACK)
 
 #if _LIBCPP_STD_VER > 14
 template <class _From, class _To>


        


More information about the libcxx-commits mailing list