Skip to content

Commit f80980b

Browse files
address ambiguous auto variable. (ros2#2481) (ros2#2486)
Signed-off-by: Tomoya Fujita <[email protected]> Signed-off-by: Steve Nogar <[email protected]> (cherry picked from commit 3cdb259) Co-authored-by: Tomoya Fujita <[email protected]>
1 parent 7907b2f commit f80980b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rclcpp/include/rclcpp/client.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ class Client : public ClientBase
845845
"Received invalid sequence number. Ignoring...");
846846
return std::nullopt;
847847
}
848-
auto value = std::move(it->second.second);
848+
std::optional<CallbackInfoVariant> value = std::move(it->second.second);
849849
this->pending_requests_.erase(request_number);
850850
return value;
851851
}

0 commit comments

Comments
 (0)