From d37b27efeba162356d00722e628c1b2f9fadb415 Mon Sep 17 00:00:00 2001 From: Michael Bentley Date: Mon, 30 Dec 2019 10:53:59 -0700 Subject: [PATCH] Put InfoStream into flit namespace --- src/InfoStream.cpp | 3 +++ src/InfoStream.h | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/InfoStream.cpp b/src/InfoStream.cpp index 03c9b936..c42bc9b5 100644 --- a/src/InfoStream.cpp +++ b/src/InfoStream.cpp @@ -106,6 +106,8 @@ namespace { std::mutex infoStreamMutex; } // end of unnamed namespace +namespace flit { + InfoStream::InfoStream() : std::ostream() , _threadbuf() @@ -135,3 +137,4 @@ void InfoStream::flushout() { _threadbuf.str(""); } +} // end of namespace flit diff --git a/src/InfoStream.h b/src/InfoStream.h index 6bcf789e..beca5e2e 100644 --- a/src/InfoStream.h +++ b/src/InfoStream.h @@ -87,6 +87,8 @@ #include #include +namespace flit { + class InfoStream : public std::ostream { public: InfoStream(); @@ -100,5 +102,6 @@ class InfoStream : public std::ostream { std::ostringstream _threadbuf; }; -#endif // INFO_STREAM_H +} //end of namespace flit +#endif // INFO_STREAM_H