moveit / moveit_ros

THIS REPO HAS MOVED TO https://github.com/ros-planning/moveit
69 stars 118 forks source link

Fix compilation with C++11. #673

Closed de-vri-es closed 8 years ago

de-vri-es commented 8 years ago

Same as ros-planning/moveit_plugins#18:

C++11 supports explicit conversion operators, and boost::shared_ptr adopted them (when available) for operator bool() const. The ActionBasedControllerHandle relies on an implicit conversion to bool. Since GCC 6 now compiles with C++11 support enabled by default, the simple_controller_manager package no longer compiles with that version onwards.

The fix is very simple: add an explicit cast.