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 70 forks source link

CONCEPT_CHECK_FAILED #113

Open igrak34 opened 2 years ago

igrak34 commented 2 years ago

Hello! I am trying to build ecl_core in my workspace (ROS2 Humble) and I am receiving this error during compilation

In file included from /home/igor/tb2_ros2_nav2/ros2_ws/src/ecl_core/ecl_concepts/src/test/../../include/ecl/concepts/blueprints.hpp:19,
                 from /home/igor/tb2_ros2_nav2/ros2_ws/src/ecl_core/ecl_concepts/src/test/concepts.cpp:16:
/home/igor/tb2_ros2_nav2/ros2_ws/src/ecl_core/ecl_concepts/src/test/../../include/ecl/concepts/macros.hpp: In instantiation of ‘void ecl::concepts::CONCEPT_CHECK_FAILED() [with Model = ecl::concepts::tests::Concept<ecl::concepts::tests::A>
’:
/home/igor/tb2_ros2_nav2/ros2_ws/src/ecl_core/ecl_concepts/src/test/../../include/ecl/concepts/macros.hpp:60:62:   required from ‘struct ecl::concepts::CONCEPT_CHECK<ecl::concepts::tests::Concept<ecl::concepts::tests::A> >’
/home/igor/tb2_ros2_nav2/ros2_ws/src/ecl_core/ecl_concepts/src/test/concepts.cpp:70:2:   required from here
/home/igor/tb2_ros2_nav2/ros2_ws/src/ecl_core/ecl_concepts/src/test/../../include/ecl/concepts/macros.hpp:47:26: error:
‘this’ pointer is null [-Werror=nonnull]
   47 |       ((Model*)0)->~Model();
      |       ~~~~~~~~~~~~~~~~~~~^~

Can you explain why I get this error and how I can fix it?

ljaniec commented 2 years ago

I am interested in these as well