aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorJonathan Wakely <jwakely@redhat.com>2023-03-31 13:17:00 +0100
committerJonathan Wakely <jwakely@redhat.com>2023-03-31 14:20:51 +0100
commit10e573e86c6a1ed11df529288ed8fba97f876032 (patch)
treefe09dcde804ae9a21ea58ffe4a3a20dc3b456fcb /gcc
parente02c9d9116f243643c0daba8dbcc5d1795c827c3 (diff)
downloadgcc-10e573e86c6a1ed11df529288ed8fba97f876032.zip
gcc-10e573e86c6a1ed11df529288ed8fba97f876032.tar.gz
gcc-10e573e86c6a1ed11df529288ed8fba97f876032.tar.bz2
libstdc++: Revert addition of boolean flag to net::ip::basic_endpoint
As pointed out in P2641R1, we can use GCC's __builtin_constant_p to emulate the proposed std::is_active_member. This allows us to detect which of the union members is active during constant evaluation, so we don't need the extra bool data member. We still can't support constexpr until C++20 though, as we need to change the active member during constant evaluation. libstdc++-v3/ChangeLog: * include/experimental/internet (ip::basic_endpoint::_M_if_v6): Revert change from member function to data member. Fix for constant evaluation by detecting which union member is active. (ip::basic_endpoint::resize): Revert changes to update _M_is_v6 flag.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions