From: Thomas Jarosch Date: Sat, 27 Dec 2025 16:05:21 +0000 (+0100) Subject: Fix Boost API compatibility: remove deprecated bytes_type::size() calls X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=506e027f4ab19da18702288015eb524350e60e21;p=pingcheck Fix Boost API compatibility: remove deprecated bytes_type::size() calls The new Boost API no longer provides a static size() method on address_v6::bytes_type (std::array). The assertions verifying that IPv6 addresses are 16 bytes have been removed as the size is a well-known constant already documented by the code comments. --- diff --git a/src/ip/ipv6header.cpp b/src/ip/ipv6header.cpp index 93c5baf..9d7515d 100644 --- a/src/ip/ipv6header.cpp +++ b/src/ip/ipv6header.cpp @@ -143,7 +143,6 @@ uint8_t Ipv6Header::get_hop_limit() const address Ipv6Header::get_source_address() const { address_v6::bytes_type address; // 16 bytes - BOOST_ASSERT( 16 == address_v6::bytes_type::size() ); address.fill( 0 ); size_t header_byte_index = 8; @@ -168,7 +167,6 @@ address Ipv6Header::get_source_address() const address Ipv6Header::get_destination_address() const { address_v6::bytes_type address; // 16 bytes - BOOST_ASSERT( 16 == address_v6::bytes_type::size() ); address.fill( 0 ); size_t header_byte_index = 24;