Commit 5fde0e3a authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

entity: update stream

fix:

…/dynamic-graph/src/dgraph/entity.cpp: In member function ‘void dynamicgraph::Entity::sendMsg(const string&, dynamicgraph::MsgType, const string&)’:
…/dynamic-graph/src/dgraph/entity.cpp:212:52: warning: ‘void dynamicgraph::Logger::sendMsg(std::__cxx11::string, dynamicgraph::MsgType, const string&)’ is deprecated: use stream(type, lineId) << msg [-Wdeprecated-declarations]
   logger_.sendMsg("[" + name + "]" + msg, t, lineId);
                                                    ^
In file included from …/dynamic-graph/include/dynamic-graph/entity.h:18:0,
                 from …/dynamic-graph/src/dgraph/entity.cpp:13:
…/dynamic-graph/include/dynamic-graph/logger.h:225:3: note: declared here
   sendMsg(std::string msg, MsgType type, const std::string &lineId = "");
   ^~~~~~~

ref. #58
parent 9eb3f66c
......@@ -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