Skip to content

Commit f8646d0

Browse files
committed
decltype(auto) return type
1 parent a289f63 commit f8646d0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rclcpp/include/rclcpp/parameter.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,15 @@ class Parameter
6262

6363
/// Get value of parameter using rclcpp::ParameterType as template argument.
6464
template<ParameterType ParamT>
65-
decltype(ParameterValue().get<ParamT>())
65+
decltype(auto)
6666
get_value() const
6767
{
6868
return value_.get<ParamT>();
6969
}
7070

7171
/// Get value of parameter using c++ types as template argument
7272
template<typename T>
73-
decltype(ParameterValue().get<T>())
73+
decltype(auto)
7474
get_value() const
7575
{
7676
return value_.get<T>();

0 commit comments

Comments
 (0)