libstdc++: Use std::construct_at in net::ip::address
authorJonathan Wakely <jwakely@redhat.com>
Wed, 17 Nov 2021 15:05:43 +0000 (15:05 +0000)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 17 Nov 2021 17:28:52 +0000 (17:28 +0000)
commit5ea8803e65eb546f58d3dccf5aff94a1638ba8b2
tree0e20acb7fff588520d5d2e8bed4fbfdfcc6f0bd5
parent5a9572e486a8556116aa842d68c1ac8a0bdf0a0b
libstdc++: Use std::construct_at in net::ip::address

Using placement-new isn't valid in constant expressions, so this
replaces it with std::construct_at (via the std::_Construct function
that is usable before C++20).

libstdc++-v3/ChangeLog:

* include/experimental/internet (address): Use std::_Construct
to initialize union members.
libstdc++-v3/include/experimental/internet