On 12/02/21 15:12 +0000, Jonathan Wakely wrote:
@@ -364,9 +378,7 @@ namespace ip static constexpr address_v6 loopback() noexcept { - address_v6 __addr; - __addr._M_bytes[15] = 1; - return __addr; + return {bytes_type{0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1}}; }
Oops, this was supposed to be a separate commit. The previous version was only constexpr in C++17 and later, which is why I changed it.