Skip to content

Commit

Permalink
Mark subscription cb parameter const (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
roncapat authored Oct 11, 2023
1 parent 856488d commit 7fcae5c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/message_filters/subscriber.h
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ class Subscriber
qos_ = qos;
options_ = options;
sub_ = node->template create_subscription<M>(topic, rclcpp_qos,
[this](std::shared_ptr<MessageType const> msg) {
[this](const std::shared_ptr<MessageType const> msg) {
this->cb(EventType(msg));
}, options);

Expand Down

0 comments on commit 7fcae5c

Please sign in to comment.