Skip to content

Commit ca59969

Browse files
author
Jeffery Hsu
committed
Specifically specify callback signature
1 parent bcebcfb commit ca59969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

irobot_events_executor/src/rclcpp/executors/events_executor/events_executor_entities_collector.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ std::function<void(size_t)>
389389
EventsExecutorEntitiesCollector::create_entity_callback(
390390
void * exec_entity_id, ExecutorEventType event_type)
391391
{
392-
auto callback = [this, exec_entity_id, event_type](size_t num_events) {
392+
std::function<void(size_t)> callback = [this, exec_entity_id, event_type](size_t num_events) {
393393
ExecutorEvent event = {exec_entity_id, -1, event_type, num_events};
394394
associated_executor_->events_queue_->enqueue(event);
395395
};

0 commit comments

Comments
 (0)