Skip to content

Commit

Permalink
Do not use deprecated strstream
Browse files Browse the repository at this point in the history
Summary: strstream has been deprecated since C++98 and stringstream is recommended replacement

Reviewed By: ilia-cher

Differential Revision: D26116890

fbshipit-source-id: e7c6f832693511463190b987da92ba272e11dfcf
  • Loading branch information
malfet authored and facebook-github-bot committed Jan 28, 2021
1 parent 55a600e commit 66bf38e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion libkineto/src/Logger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ Logger::~Logger() {
}
buf_ << std::ends;
out_ << buf_.str() << std::endl;
buf_.freeze(false);
}

void Logger::setVerboseLogModules(const std::vector<std::string>& modules) {
Expand Down
4 changes: 2 additions & 2 deletions libkineto/src/Logger.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#include <atomic>
#include <ostream>
#include <string>
#include <strstream>
#include <sstream>
#include <vector>

namespace KINETO_NAMESPACE {
Expand Down Expand Up @@ -97,7 +97,7 @@ class Logger {
}

private:
std::strstream buf_;
std::stringstream buf_;
std::ostream& out_;
int errnum_;
static int severityLevel_;
Expand Down

0 comments on commit 66bf38e

Please sign in to comment.