Skip to content

Commit

Permalink
Fix compilation error on gcc 4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
junrushao committed May 21, 2020
1 parent 547935b commit 37c77e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/dmlc/logging.h
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,8 @@ class LogMessageFatal {
std::ostringstream log_stream;
DMLC_NO_INLINE void Init(const char *file, int line) {
DateLogger date;
log_stream.str("");
log_stream.clear();
log_stream = std::ostringstream();
log_stream << "[" << date.HumanDate() << "] " << file << ":" << line
<< ": ";
Expand Down

0 comments on commit 37c77e6

Please sign in to comment.