After import std, std::byteswap cannot be used. After my observation, this function is the only one in the <bit> header file that has not been exported. The purpose of this patch is to export std::byteswap so that it can be used normally after import std.
Signed-off-by: hexne <61956889+he...@users.noreply.github.com> --- libstdc++-v3/src/c++23/std.cc.in | 1 + 1 file changed, 1 insertion(+) diff --git a/libstdc++-v3/src/c++23/std.cc.in b/libstdc++-v3/src/c++23/std.cc.in index 9301ed90c00..61f0b715b36 100644 --- a/libstdc++-v3/src/c++23/std.cc.in +++ b/libstdc++-v3/src/c++23/std.cc.in @@ -663,6 +663,7 @@ export namespace std using std::bit_ceil; using std::bit_floor; using std::bit_width; + using std::byteswap; using std::countl_one; using std::countl_zero; using std::countr_one; -- 2.50.1