From 8bbb07ac4f392cc19a36d40730288d9202fc0fec Mon Sep 17 00:00:00 2001 From: Christian Eltzschig Date: Tue, 30 Jul 2024 23:54:43 +0200 Subject: [PATCH] [#264] Enable slice methods only for slice Payload; remove reinterpret cast --- iceoryx2-ffi/cxx/include/iox2/publisher.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/iceoryx2-ffi/cxx/include/iox2/publisher.hpp b/iceoryx2-ffi/cxx/include/iox2/publisher.hpp index efe79fbb9..4c37e397d 100644 --- a/iceoryx2-ffi/cxx/include/iox2/publisher.hpp +++ b/iceoryx2-ffi/cxx/include/iox2/publisher.hpp @@ -65,7 +65,7 @@ class Publisher { /// [`Payload`]. /// /// On failure it returns [`PublisherLoanError`] describing the failure. - template ::VALUE, T>> + template ::VALUE, T>> auto loan_slice(uint64_t number_of_elements) -> iox::expected, PublisherLoanError>;