diff --git a/include/dynamic-graph/python/interpreter.hh b/include/dynamic-graph/python/interpreter.hh index ff8a8cdc9ecd8e76f6ea6ac6aee487c3963e5812..3e8119707f6c9c53c098023e854b2333d056e533 100644 --- a/include/dynamic-graph/python/interpreter.hh +++ b/include/dynamic-graph/python/interpreter.hh @@ -8,7 +8,6 @@ #undef _XOPEN_SOURCE #include <dynamic-graph/python/fwd.hh> #include "dynamic-graph/python/api.hh" -#include "dynamic-graph/python/deprecated.hh" #include "dynamic-graph/python/python-compat.hh" #include "dynamic-graph/python/api.hh" @@ -27,7 +26,7 @@ class DYNAMIC_GRAPH_PYTHON_DLLAPI Interpreter { /// \brief Method to start python interperter. /// \param command string to execute /// Method deprecated, you *SHOULD* handle error messages. - DYNAMIC_GRAPH_PYTHON_DEPRECATED std::string python(const std::string& command); + [[deprecated("you *SHOULD* handle error messages")]] std::string python(const std::string& command); /// \brief Method to start python interperter. /// \param command string to execute, result, stdout, stderr strings