From 061bc6f8dfc2af90d9996a77317b21398f6bdda5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= <igaztanaga@gmail.com>
Date: Sun, 2 Mar 2025 23:23:56 +0100
Subject: [PATCH] Fixes #248 ("gcc-14 errors out on segment_manager_helper.hpp,
 error: no matching function...")

---
 .../boost/interprocess/detail/segment_manager_helper.hpp    | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/include/boost/interprocess/detail/segment_manager_helper.hpp b/include/boost/interprocess/detail/segment_manager_helper.hpp
index 6d47e4aa..de788ce8 100644
--- boost/interprocess/detail/segment_manager_helper.hpp
+++ boost/interprocess/detail/segment_manager_helper.hpp
@@ -122,7 +122,7 @@ struct block_header
       BOOST_ASSERT(namelen == m_num_char);
       return get_rounded_size
                ( size_type(sizeof(Header))
-            , size_type(::boost::container::dtl::alignment_of<block_header<size_type> >::value))
+               , size_type(::boost::container::dtl::alignment_of<block_header<size_type> >::value))
            + this->template total_named_size<0, char>(namelen);
    }
 
@@ -392,7 +392,9 @@ struct block_header
 
    size_type name_length_offset() const
    {
-      return this->value_offset() + get_rounded_size(m_value_bytes, ::boost::move_detail::alignment_of<name_len_t>::value);
+      return this->value_offset() +
+         get_rounded_size( size_type(m_value_bytes)
+                         , size_type(::boost::move_detail::alignment_of<name_len_t>::value));
    }
 };
 
