rclcpp icon indicating copy to clipboard operation
rclcpp copied to clipboard

get_parameter variants with noexcept specifier

Open bvolkmer opened this issue 3 years ago • 0 comments

Feature request

Node::get_parameter() variants, that throw no exceptions (2 functions args and all get_parameter_or) should be declared with the noexcept specifier.

Feature description

Functions that (as explicitly stated in the docs) throw no exception should be declared noexcept. Static analyzers (like clang-tidy with bugprone-exception-escape) complain about possible exceptions in get_parameter() if the surrounding function should not throw exceptions.

bvolkmer avatar Nov 16 '22 17:11 bvolkmer