Skip to content

Commit

Permalink
Make constructor explicit
Browse files Browse the repository at this point in the history
  • Loading branch information
m2-farzan committed Oct 16, 2021
1 parent 4c8efe3 commit 37e65a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rclcpp/include/rclcpp/exceptions/exceptions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class UninitializedStaticallyTypedParameterException : public std::runtime_error
* \param[in] name the name of the parameter.
*/
RCLCPP_PUBLIC
UninitializedStaticallyTypedParameterException(const std::string & name)
explicit UninitializedStaticallyTypedParameterException(const std::string & name)
: std::runtime_error("Statically typed parameter '" + name + "' must be initialized.")
{}
};
Expand Down

0 comments on commit 37e65a3

Please sign in to comment.