diff --git a/test_communication/test/test_publisher_subscriber_serialized.cpp b/test_communication/test/test_publisher_subscriber_serialized.cpp index 6c4fde71..fb147da5 100644 --- a/test_communication/test/test_publisher_subscriber_serialized.cpp +++ b/test_communication/test/test_publisher_subscriber_serialized.cpp @@ -48,7 +48,8 @@ TEST_F(CLASSNAME(TestMessageSerialization, RMW_IMPLEMENTATION), serialized_callb size_t counter = 0; auto serialized_callback = - [&got_first_msg, &counter](const std::shared_ptr serialized_msg) { + [&got_first_msg, + &counter](const std::shared_ptr serialized_msg) { using MessageT = test_msgs::msg::BasicTypes; rclcpp::Serialization serializer; MessageT basic_types_msg;