]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: add missing to_underlying to module std [PR106852]
authorNicolas Werner <nicolas.werner@hotmail.de>
Tue, 7 Jan 2025 15:26:54 +0000 (15:26 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 8 Jan 2025 12:45:38 +0000 (12:45 +0000)
std::to_underlying was missing from the std module introduced in
r15-5366-g7db55c0ba1baaf. This patch adds the missing export for this
utility.

libstdc++-v3/ChangeLog:

PR libstdc++/106852
* src/c++23/std.cc.in (to_underlying): Add.

Signed-off-by: Nicolas Werner <nicolas.werner@hotmail.de>
libstdc++-v3/src/c++23/std.cc.in

index dcba343426c6a67497bc4af1b01d3ba5ac27f904..c0b7e1dc7271ff0c1c2e2fe1b65812dfa96af3c2 100644 (file)
@@ -3173,6 +3173,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