mirror of
https://github.com/boostorg/interprocess.git
synced 2026-01-19 04:12:13 +00:00
Use C-casts to support cv qualified element_types
This commit is contained in:
@@ -13,7 +13,7 @@ file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
|
||||
<Intrinsic Name="boost_to_address" ReturnType="pointer" Expression="get()" />
|
||||
|
||||
<!-- This is a simplified and inlined version of `offset_ptr::operator+=()` -->
|
||||
<Intrinsic Name="boost_next" ReturnType="pointer" Expression="reinterpret_cast<pointer>( reinterpret_cast<unsigned char*>(ptr) + static_cast<offset_type>(offset * (difference_type)sizeof(element_type)) )">
|
||||
<Intrinsic Name="boost_next" ReturnType="pointer" Expression="(pointer)( (unsigned char*)(ptr) + (offset_type)(offset * (difference_type)sizeof(element_type)) )">
|
||||
<Parameter Name="ptr" Type="pointer" />
|
||||
<Parameter Name="offset" Type="difference_type" />
|
||||
</Intrinsic>
|
||||
|
||||
Reference in New Issue
Block a user