forked from boostorg/beast
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:
1 parent
104f12a9e2
commit
a40dd2690a
2 files changed
+44
-55
No files matched your search
@@ -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"))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user