diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2025-01-07 15:26:54 +0000 |
---|---|---|
committer | Jonathan Wakely <redi@gcc.gnu.org> | 2025-01-08 12:45:38 +0000 |
commit | 653a44e8613edf6c306687d17cf3039536f1bf12 (patch) | |
tree | ba533d5cde1f4b04d368296922d235183a0e520c | |
parent | a37cd4f9064fdf574461bcab2e1f4578b7f411db (diff) | |
download | gcc-653a44e8613edf6c306687d17cf3039536f1bf12.zip gcc-653a44e8613edf6c306687d17cf3039536f1bf12.tar.gz gcc-653a44e8613edf6c306687d17cf3039536f1bf12.tar.bz2 |
libstdc++: add missing to_underlying to module std [PR106852]
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>
-rw-r--r-- | libstdc++-v3/src/c++23/std.cc.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libstdc++-v3/src/c++23/std.cc.in b/libstdc++-v3/src/c++23/std.cc.in index dcba343..c0b7e1d 100644 --- a/libstdc++-v3/src/c++23/std.cc.in +++ b/libstdc++-v3/src/c++23/std.cc.in @@ -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 |