Better dstream:

* non-Windows dstream is a simple reference alias
* dstream constructor takes a target ostream argument
* dstream inherits the unitbuf setting of the target stream
This commit is contained in:
Vinnie Falco committed 2016-09-02 16:56:19 -04:00
1 parent 104f12a9e2
commit a40dd2690a
2 files changed
+44 -55

No files matched your search

+2 -1
View File
@@ -99,7 +99,8 @@ int main(int ac, char const* av[])
po::store(po::parse_command_line(ac, av, desc), vm);
po::notify(vm);
dstream log;
dstream log{std::cerr};
std::unitbuf(log);
if(vm.count("help"))
{