Fix Boost API compatibility: remove deprecated bytes_type::size() calls
authorThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 27 Dec 2025 16:05:21 +0000 (17:05 +0100)
committerThomas Jarosch <thomas.jarosch@intra2net.com>
Sat, 27 Dec 2025 16:05:21 +0000 (17:05 +0100)
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.

src/ip/ipv6header.cpp

index 93c5baf..9d7515d 100644 (file)
@@ -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;