[libcxx-commits] [libcxx] 4640736 - [libc++] Add missing `std::is_virtual_base_of` to `type_traits.inc` (#107009)
via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 3 10:28:39 PDT 2024
Author: Hristo Hristov
Date: 2024-09-03T13:28:36-04:00
New Revision: 46407366166dc84c95075cf273acc005605967fe
URL: https://github.com/llvm/llvm-project/commit/46407366166dc84c95075cf273acc005605967fe
DIFF: https://github.com/llvm/llvm-project/commit/46407366166dc84c95075cf273acc005605967fe.diff
LOG: [libc++] Add missing `std::is_virtual_base_of` to `type_traits.inc` (#107009)
std::is_virtual_base_of was implemented in https://github.com/llvm/llvm-project/pull/105847
Added:
Modified:
libcxx/modules/std/type_traits.inc
Removed:
################################################################################
diff --git a/libcxx/modules/std/type_traits.inc b/libcxx/modules/std/type_traits.inc
index d368daf35ccb8c..485a5ddf63aed0 100644
--- a/libcxx/modules/std/type_traits.inc
+++ b/libcxx/modules/std/type_traits.inc
@@ -114,6 +114,9 @@ export namespace std {
// [meta.rel], type relations
using std::is_base_of;
+#if _LIBCPP_STD_VER >= 26 && __has_builtin(__builtin_is_virtual_base_of)
+ using std::is_virtual_base_of;
+#endif
using std::is_convertible;
// using std::is_layout_compatible;
using std::is_nothrow_convertible;
@@ -287,6 +290,9 @@ export namespace std {
// [meta.rel], type relations
using std::is_base_of_v;
+#if _LIBCPP_STD_VER >= 26 && __has_builtin(__builtin_is_virtual_base_of)
+ using std::is_virtual_base_of_v;
+#endif
using std::is_convertible_v;
using std::is_invocable_r_v;
using std::is_invocable_v;
More information about the libcxx-commits
mailing list