From 3ad516083ae96d9cd771a781c58d3243984f07f1 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Thu, 2 Sep 2021 12:37:30 +0200 Subject: [PATCH] update deprecations for C++14 --- include/dynamic-graph/python/interpreter.hh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/dynamic-graph/python/interpreter.hh b/include/dynamic-graph/python/interpreter.hh index ff8a8cd..3e81197 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 -- GitLab