Skip to content

Commit

Permalink
[#264] Enable slice methods only for slice Payload; remove reinterpre…
Browse files Browse the repository at this point in the history
…t cast
  • Loading branch information
elfenpiff committed Jul 31, 2024
1 parent c2194fe commit 8bbb07a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion iceoryx2-ffi/cxx/include/iox2/publisher.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ class Publisher {
/// [`Payload`].
///
/// On failure it returns [`PublisherLoanError`] describing the failure.
template <typename T = Payload, typename = std::enable_if<iox::IsSlice<T>::VALUE, T>>
template <typename T = Payload, typename = std::enable_if_t<iox::IsSlice<T>::VALUE, T>>
auto
loan_slice(uint64_t number_of_elements) -> iox::expected<SampleMut<S, Payload, UserHeader>, PublisherLoanError>;

Expand Down

0 comments on commit 8bbb07a

Please sign in to comment.