We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a289f63 commit f8646d0Copy full SHA for f8646d0
1 file changed
rclcpp/include/rclcpp/parameter.hpp
@@ -62,15 +62,15 @@ class Parameter
62
63
/// Get value of parameter using rclcpp::ParameterType as template argument.
64
template<ParameterType ParamT>
65
- decltype(ParameterValue().get<ParamT>())
+ decltype(auto)
66
get_value() const
67
{
68
return value_.get<ParamT>();
69
}
70
71
/// Get value of parameter using c++ types as template argument
72
template<typename T>
73
- decltype(ParameterValue().get<T>())
74
75
76
return value_.get<T>();
0 commit comments