Skip to content

Commit 4640736

Browse files
authored
[libc++] Add missing std::is_virtual_base_of to type_traits.inc (#107009)
std::is_virtual_base_of was implemented in #105847
1 parent fdc1b5d commit 4640736

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

libcxx/modules/std/type_traits.inc

+6
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,9 @@ export namespace std {
114114

115115
// [meta.rel], type relations
116116
using std::is_base_of;
117+
#if _LIBCPP_STD_VER >= 26 && __has_builtin(__builtin_is_virtual_base_of)
118+
using std::is_virtual_base_of;
119+
#endif
117120
using std::is_convertible;
118121
// using std::is_layout_compatible;
119122
using std::is_nothrow_convertible;
@@ -287,6 +290,9 @@ export namespace std {
287290

288291
// [meta.rel], type relations
289292
using std::is_base_of_v;
293+
#if _LIBCPP_STD_VER >= 26 && __has_builtin(__builtin_is_virtual_base_of)
294+
using std::is_virtual_base_of_v;
295+
#endif
290296
using std::is_convertible_v;
291297
using std::is_invocable_r_v;
292298
using std::is_invocable_v;

0 commit comments

Comments
 (0)