Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Put InfoStream into flit namespace #314

Merged
merged 2 commits into from
Dec 30, 2019
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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