Skip to content

Commit 1b4cc30

Browse files
authored
Update subscription callback signatures (#135)
Signed-off-by: mini-1235 <[email protected]>
1 parent e6644dd commit 1b4cc30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tlsf_cpp/example/allocator_example.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ int main(int argc, char ** argv)
6262
}
6363

6464
uint32_t counter = 0;
65-
auto callback = [&counter](std_msgs::msg::UInt32::SharedPtr msg) -> void
65+
auto callback = [&counter](std_msgs::msg::UInt32::ConstSharedPtr msg) -> void
6666
{
6767
(void)msg;
6868
++counter;

0 commit comments

Comments
 (0)