From 9eb3f66c060fcbf3ec76c3739297b7ffdc37d674 Mon Sep 17 00:00:00 2001 From: Guilhem Saurel <guilhem.saurel@laas.fr> Date: Thu, 2 Sep 2021 12:34:53 +0200 Subject: [PATCH] update deprecations for C++14 --- include/dynamic-graph/logger.h | 7 ++++--- include/dynamic-graph/signal-ptr.h | 2 -- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/dynamic-graph/logger.h b/include/dynamic-graph/logger.h index 24a8fae..278e7c2 100644 --- a/include/dynamic-graph/logger.h +++ b/include/dynamic-graph/logger.h @@ -221,15 +221,16 @@ public: * stream(type, lineId) << msg << '\n'; * \endcode */ - void sendMsg(std::string msg, MsgType type, const std::string &lineId = ""); + [[deprecated("use stream(type, lineId) << msg")]] void + sendMsg(std::string msg, MsgType type, const std::string &lineId = ""); /** \deprecated instead, use * \code * stream(type, lineId) << msg << '\n'; * \endcode */ - void sendMsg(std::string msg, MsgType type, const std::string &file, - int line) DYNAMIC_GRAPH_DEPRECATED; + [[deprecated("use stream(type, lineId) << msg")]] void + sendMsg(std::string msg, MsgType type, const std::string &file, int line); /** Set the sampling time at which the method countdown() * is going to be called. */ diff --git a/include/dynamic-graph/signal-ptr.h b/include/dynamic-graph/signal-ptr.h index 5f2e8ac..c5dd7b4 100644 --- a/include/dynamic-graph/signal-ptr.h +++ b/include/dynamic-graph/signal-ptr.h @@ -9,8 +9,6 @@ #include <dynamic-graph/exception-signal.h> #include <dynamic-graph/signal.h> -#include <dynamic-graph/deprecated.hh> - namespace dynamicgraph { /// \ingroup dgraph /// -- GitLab