Skip to content

Commit 63c2e2e

Browse files
authored
fix: init concatenated_vector with begin() & end() (#2492)
*. this commit will fix the warning [-Wstringop-overflow=] #2461 Signed-off-by: homalozoa <[email protected]>
1 parent 04ea0bb commit 63c2e2e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

rclcpp/include/rclcpp/experimental/intra_process_manager.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,8 @@ class IntraProcessManager
253253
// So this case is equivalent to all the buffers requiring ownership
254254

255255
// Merge the two vector of ids into a unique one
256-
std::vector<uint64_t> concatenated_vector(sub_ids.take_shared_subscriptions);
256+
std::vector<uint64_t> concatenated_vector(
257+
sub_ids.take_shared_subscriptions.begin(), sub_ids.take_shared_subscriptions.end());
257258
concatenated_vector.insert(
258259
concatenated_vector.end(),
259260
sub_ids.take_ownership_subscriptions.begin(),

0 commit comments

Comments
 (0)