Some syntactic improvements

This commit is contained in:
gabi
2014-10-10 21:17:26 +03:00
parent ae2426e0be
commit b49b086723
5 changed files with 27 additions and 49 deletions

View File

@@ -1,5 +1,6 @@
#pragma once
// Flush to file every X writes..
// If X is zero than never flush..
namespace c11log
{
@@ -13,6 +14,8 @@ public:
_flush_every(flush_every),
_flush_countdown(flush_every) {};
file_flush_helper(const file_flush_helper&) = delete;
void write(const std::string& msg, std::ofstream& ofs)
{
ofs.write(msg.data(), msg.size());