From 319009e292b579f32b81f457f02b468bf9666b44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matou=C5=A1=20Vrba?= Date: Wed, 1 Nov 2023 12:45:19 +0100 Subject: [PATCH] [DynRecMgr]: hotfix to remove warnings --- include/mrs_lib/dynamic_reconfigure_mgr.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/mrs_lib/dynamic_reconfigure_mgr.h b/include/mrs_lib/dynamic_reconfigure_mgr.h index 51d3fa9d..a577453e 100644 --- a/include/mrs_lib/dynamic_reconfigure_mgr.h +++ b/include/mrs_lib/dynamic_reconfigure_mgr.h @@ -228,12 +228,14 @@ class DynamicReconfigureMgr else ROS_INFO_STREAM("[" << m_node_name << "]: parameter '" << name << "':\t" << val); } + // helper methods for automatic parameter value parsing template inline bool try_cast(boost::any& val, T*& out) { return (out = boost::any_cast(&val)); - }; + } + template inline bool try_compare(boost::any& val, T*& to_what) { @@ -250,7 +252,7 @@ class DynamicReconfigureMgr ROS_WARN_STREAM("[" << m_node_name << "]: DynamicReconfigure value type has changed - this should not happen!"); return false; } - }; + } }; //}