diff --git a/tlsf_cpp/example/allocator_example.cpp b/tlsf_cpp/example/allocator_example.cpp index b8c16ca..60cfa92 100644 --- a/tlsf_cpp/example/allocator_example.cpp +++ b/tlsf_cpp/example/allocator_example.cpp @@ -62,7 +62,7 @@ int main(int argc, char ** argv) } uint32_t counter = 0; - auto callback = [&counter](std_msgs::msg::UInt32::SharedPtr msg) -> void + auto callback = [&counter](std_msgs::msg::UInt32::ConstSharedPtr msg) -> void { (void)msg; ++counter;