Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Guilhem Saurel
dynamic-graph
Commits
27de764c
Unverified
Commit
27de764c
authored
Aug 12, 2019
by
corentinberge
Committed by
GitHub
Aug 12, 2019
Browse files
Update logger.cpp
Change the input mode to ostringstream
parent
30050eca
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/debug/logger.cpp
View file @
27de764c
...
...
@@ -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
())
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment