mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 10:29:02 +08:00
remode stack_oss
This commit is contained in:
@@ -12,10 +12,10 @@ public:
|
||||
explicit file_flush_helper(const std::size_t flush_every):
|
||||
_flush_every(flush_every),
|
||||
_write_counter(0) {};
|
||||
|
||||
void write(const bufpair_t& msg, std::ofstream& ofs)
|
||||
|
||||
void write(const std::string& msg, std::ofstream& ofs)
|
||||
{
|
||||
ofs.write(msg.first, msg.second);
|
||||
ofs.write(msg.data(), msg.size());
|
||||
if(++_write_counter == _flush_every)
|
||||
{
|
||||
ofs.flush();
|
||||
|
Reference in New Issue
Block a user