Skip to content

Commit

Permalink
Merge pull request #314 from PRUNERS/issue96-all-in-flit-namespace
Browse files Browse the repository at this point in the history
Put InfoStream into flit namespace
  • Loading branch information
IanBriggs authored Dec 30, 2019
2 parents cffdf24 + 95234e9 commit a6ae0a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/InfoStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,8 @@ namespace {
std::mutex infoStreamMutex;
} // end of unnamed namespace

namespace flit {

InfoStream::InfoStream()
: std::ostream()
, _threadbuf()
Expand Down Expand Up @@ -135,3 +137,4 @@ void InfoStream::flushout() {
_threadbuf.str("");
}

} // end of namespace flit
5 changes: 4 additions & 1 deletion src/InfoStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@
#include <sstream>
#include <iostream>

namespace flit {

class InfoStream : public std::ostream {
public:
InfoStream();
Expand All @@ -100,5 +102,6 @@ class InfoStream : public std::ostream {
std::ostringstream _threadbuf;
};

#endif // INFO_STREAM_H
} //end of namespace flit

#endif // INFO_STREAM_H

0 comments on commit a6ae0a8

Please sign in to comment.