std::to_underlying was missing from the std module introduced in
7db55c0ba1baaf0e323ef7f9ef8c9cda077d40e9. This patch adds the missing
export for this utility.
There might be more exports missing, but this is the one I found when
trying to compile some test projects.
PR libstdc++/106852
libstdc++-v3/ChangeLog:
* src/c++23/std.cc.in: Add std::to_underlying
Signed-off-by: Nicolas Werner <[email protected]>
---
libstdc++-v3/src/c++23/std.cc.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libstdc++-v3/src/c++23/std.cc.in b/libstdc++-v3/src/c++23/std.cc.in
index 0e5b41c5b3b..e251c1c1981 100644
--- a/libstdc++-v3/src/c++23/std.cc.in
+++ b/libstdc++-v3/src/c++23/std.cc.in
@@ -3171,6 +3171,9 @@ export namespace std
using std::make_pair;
using std::piecewise_construct;
using std::piecewise_construct_t;
+#if __cpp_lib_to_underlying
+ using std::to_underlying;
+#endif
using std::tuple_element;
using std::tuple_size;
#pragma GCC diagnostic push
--
2.47.1