[gcc r16-1172] libstdc++: Export std::indirect and std::polymorphic from std module [PR119152]
Tomasz Kaminski
tkaminsk@gcc.gnu.org
Thu Jun 5 10:39:48 GMT 2025
https://gcc.gnu.org/g:a37f996fceef901dd2fbbdd768b1abfa1415754f
commit r16-1172-ga37f996fceef901dd2fbbdd768b1abfa1415754f
Author: Tomasz Kamiński <tkaminsk@redhat.com>
Date: Wed Jun 4 16:39:43 2025 +0200
libstdc++: Export std::indirect and std::polymorphic from std module [PR119152]
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.
Diff:
---
libstdc++-v3/src/c++23/std.cc.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/libstdc++-v3/src/c++23/std.cc.in b/libstdc++-v3/src/c++23/std.cc.in
index d9a265e2256b..4cd3e52c8bbf 100644
--- a/libstdc++-v3/src/c++23/std.cc.in
+++ b/libstdc++-v3/src/c++23/std.cc.in
@@ -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>
More information about the Libstdc++-cvs
mailing list