Commit 27de764c authored by corentinberge's avatar corentinberge Committed by GitHub

Update logger.cpp

Change the input mode to ostringstream
parent 30050eca
......@@ -12,6 +12,7 @@
#endif
#define ENABLE_RT_LOG
#include <sstream>
#include <stdio.h>
#include <iostream>
#include <iomanip> // std::setprecision
......@@ -65,7 +66,9 @@ namespace dynamicgraph
if( isStreamMsg(type))
{
// check whether counter already exists
string id = file+toString(line);
std::ostringstream oss;
oss << file << line;
std::string id (oss.str());
map<string,double>::iterator it = m_stream_msg_counters.find(id);
if(it == m_stream_msg_counters.end())
{
......
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