Skip to content

Commit

Permalink
C++20 compatibility fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Guilherme Rodrigues <guilherme.rodrigues@ait.ac.at>
  • Loading branch information
AiVerisimilitude committed Aug 30, 2023
1 parent 43cf0be commit daf632c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ class IntraProcessManager
if constexpr (rclcpp::TypeAdapter<MessageT>::is_specialized::value) {
ROSMessageTypeAllocator ros_message_alloc(allocator);
auto ptr = ros_message_alloc.allocate(1);
ros_message_alloc.construct(ptr);
std::allocator_traits<ROSMessageTypeAllocator>::construct(ros_message_alloc, ptr);
ROSMessageTypeDeleter deleter;
allocator::set_allocator_for_deleter(&deleter, &allocator);
rclcpp::TypeAdapter<MessageT>::convert_to_ros_message(*message, *ptr);
Expand Down
2 changes: 1 addition & 1 deletion rclcpp/test/rclcpp/executors/test_executors.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ TYPED_TEST(TestExecutors, testRaceConditionAddNode)
if (should_cancel) {
break;
}
total += k * (i + 42);
total = total + k * (i + 42);
}
});
}
Expand Down

0 comments on commit daf632c

Please sign in to comment.