Skip to content

Commit

Permalink
[#490] Return ImmutableSlice in immutable payload() method of SampleMut
Browse files Browse the repository at this point in the history
  • Loading branch information
orecham committed Nov 13, 2024
1 parent 5b8e6ee commit c65c1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceoryx2-ffi/cxx/include/iox2/sample_mut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ inline auto SampleMut<S, Payload, UserHeader>::payload() const -> iox::Immutable

iox2_sample_mut_payload(&m_handle, &ptr, &number_of_elements);

return iox::ImmutableSlice<ValueType>(static_cast<ValueType*>(ptr), number_of_elements);
return iox::ImmutableSlice<ValueType>(static_cast<const ValueType*>(ptr), number_of_elements);
}

template <ServiceType S, typename Payload, typename UserHeader>
Expand Down

0 comments on commit c65c1f4

Please sign in to comment.