You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had an outdated message error in the following case (where by mistake I forget to add the onHalted method)
main.cpp:104:64: required from here
/usr/local/include/behaviortree_cpp/bt_factory.h:363:19: error: static assertion failed: The given type can't be abstract
363 | static_assert(!std::is_abstract_v<T>, "The given type can't be abstract");
| ^~~~~~~~~~~~~~~~~~~~~~
/usr/local/include/behaviortree_cpp/bt_factory.h:374:19: error: static assertion failed: [registerNode]: since you have a static method providedPorts(),
you MUST add a constructor with signature:
(const std::string&, const NodeParameters&)
374 | static_assert(!(has_static_ports_list && !param_constructable),
|
Ok my class is still abstract because of missing override onHalted method but:
you MUST add a constructor with signature: (const std::string&, const NodeParameters&) this message is outdated. It should be NodeConfig instead of NodeParameters.
I have already the correct constructor so it's confusing to get the point between abstracted class, constructor and providedPorts(). The second message should not be displayed in all cases. I know this may be complex to separate error mesages.
The text was updated successfully, but these errors were encountered:
Lecrapouille
changed the title
Outdated static error message
Outdated static_assert error message
Jan 17, 2024
Hello !
I had an outdated message error in the following case (where by mistake I forget to add the
onHalted
method)Here is the code:
Ok my class is still abstract because of missing override onHalted method but:
you MUST add a constructor with signature: (const std::string&, const NodeParameters&)
this message is outdated. It should beNodeConfig
instead of NodeParameters.The text was updated successfully, but these errors were encountered: