Skip to content

Commit

Permalink
Minimal correction
Browse files Browse the repository at this point in the history
Signed-off-by: ivanpauno <ivanpauno@ekumenlabs.com>
  • Loading branch information
ivanpauno committed Sep 6, 2019
1 parent aacef1c commit b56d6f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/parameter_client.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ class SyncParametersClient
{
return get_parameter_impl(
parameter_name,
std::function<T()>([parameter_name]() -> T
std::function<T()>([&parameter_name]() -> T
{
throw std::runtime_error("Parameter '" + parameter_name + "' is not set");
})
Expand Down

0 comments on commit b56d6f9

Please sign in to comment.