Skip to content

Commit 061bc6f

Browse files
committed
Fixes #248 ("gcc-14 errors out on segment_manager_helper.hpp, error: no matching function...")
1 parent 29cee9c commit 061bc6f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

include/boost/interprocess/detail/segment_manager_helper.hpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ struct block_header
122122
BOOST_ASSERT(namelen == m_num_char);
123123
return get_rounded_size
124124
( size_type(sizeof(Header))
125-
, size_type(::boost::container::dtl::alignment_of<block_header<size_type> >::value))
125+
, size_type(::boost::container::dtl::alignment_of<block_header<size_type> >::value))
126126
+ this->template total_named_size<0, char>(namelen);
127127
}
128128

@@ -392,7 +392,9 @@ struct block_header
392392

393393
size_type name_length_offset() const
394394
{
395-
return this->value_offset() + get_rounded_size(m_value_bytes, ::boost::move_detail::alignment_of<name_len_t>::value);
395+
return this->value_offset() +
396+
get_rounded_size( size_type(m_value_bytes)
397+
, size_type(::boost::move_detail::alignment_of<name_len_t>::value));
396398
}
397399
};
398400

0 commit comments

Comments
 (0)