diff --git a/libstdc++-v3/include/std/type_traits b/libstdc++-v3/include/std/type_traits index a71162b33ec6c..3b1b419bbbbeb 100644 --- a/libstdc++-v3/include/std/type_traits +++ b/libstdc++-v3/include/std/type_traits @@ -3477,8 +3477,13 @@ template #endif template inline constexpr bool is_base_of_v = __is_base_of(_Base, _Derived); +#if _GLIBCXX_USE_BUILTIN_TRAIT(__is_convertible) template inline constexpr bool is_convertible_v = __is_convertible(_From, _To); +#else +template + inline constexpr bool is_convertible_v = is_convertible<_From, _To>::value; +#endif template inline constexpr bool is_invocable_v = is_invocable<_Fn, _Args...>::value; template