Unverified Commit 4d6b4a9f authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #91 from nim65s/devel

update deprecations for C++14
parents 8d3641ba 5fde0e3a
......@@ -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. */
......
......@@ -9,8 +9,6 @@
#include <dynamic-graph/exception-signal.h>
#include <dynamic-graph/signal.h>
#include <dynamic-graph/deprecated.hh>
namespace dynamicgraph {
/// \ingroup dgraph
///
......
......@@ -209,5 +209,5 @@ Command *Entity::getNewStyleCommand(const std::string &commandName) {
void Entity::sendMsg(const std::string &msg, MsgType t,
const std::string &lineId) {
logger_.sendMsg("[" + name + "]" + msg, t, lineId);
logger_.stream(t, lineId) << "[" << name << "]" << msg << '\n';
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment