stonier / ecl_core

A set of tools and interfaces extending the capabilities of c++ to provide a lightweight, consistent interface with a focus for control programming.
Other
84 stars 69 forks source link

warning: dynamic exception specifications are deprecated in C++11 #76

Closed lucascoelhof closed 6 years ago

lucascoelhof commented 6 years ago

Hi,

My package depends on ecl_geometry, and when I was trying to migrate from Indigo to Melodic, I got a lot of warnings regarding dynamic exception specifications, like this one:

/opt/ros/melodic/include/ecl/exceptions/macros.hpp:120:44: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]

define ecl_assert_throw_decl(exception) throw(exception)

/opt/ros/melodic/include/ecl/exceptions/macros.hpp:120:44: note: in definition of macro ‘ecl_assert_throw_decl’

define ecl_assert_throw_decl(exception) throw(exception)

I found a discussion in StackOverflow about this issue. I would suggest to change that, since it is deprecated.

stonier commented 6 years ago

Aha...building with defaults of catkin tools on melodic blocks you on this error.

I'll update shortly.

stonier commented 6 years ago

Released in melodic:

Also cherry-picked over to the ros2 devel branches.