]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Export std::indirect and std::polymorphic from std module [PR119152]
authorTomasz Kamiński <tkaminsk@redhat.com>
Wed, 4 Jun 2025 14:39:43 +0000 (16:39 +0200)
committerTomasz Kamiński <tkaminsk@redhat.com>
Thu, 5 Jun 2025 10:39:30 +0000 (12:39 +0200)
PR libstdc++/119152

libstdc++-v3/ChangeLog:

* src/c++23/std.cc.in (std::indirect, pmr::indirect)
[__cpp_lib_indirect]
(std::polymorphic, pmr::polymorphic) [__cpp_lib_polymorphic]: Export.

libstdc++-v3/src/c++23/std.cc.in

index d9a265e2256b57c532859e660a8c04dd7bf09c23..4cd3e52c8bbff5f854653579b85be1b86e6fea87 100644 (file)
@@ -1956,6 +1956,14 @@ export namespace std
   using std::out_ptr;
   using std::inout_ptr;
 #endif
+#if __cpp_lib_indirect
+  using std::indirect;
+  namespace pmr { using std::pmr::indirect; }
+#endif
+#if __cpp_lib_polymorphic
+  using std::polymorphic;
+  namespace pmr { using std::pmr::polymorphic; }
+#endif
 }
 
 // 20.4 <memory_resource>