From 815b52b8fb4510fd4f50ebe2c103fc1493c0d255 Mon Sep 17 00:00:00 2001 From: gabime Date: Tue, 16 Oct 2018 00:12:54 +0300 Subject: [PATCH] Fixed implicit conversion to str in c_formatter --- include/spdlog/details/pattern_formatter.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/spdlog/details/pattern_formatter.h b/include/spdlog/details/pattern_formatter.h index ad6ef9a4..f5a8406e 100644 --- a/include/spdlog/details/pattern_formatter.h +++ b/include/spdlog/details/pattern_formatter.h @@ -123,9 +123,9 @@ class c_formatter final : public flag_formatter // fmt::format_to(dest, "{} {} {} ", days[tm_time.tm_wday], // months[tm_time.tm_mon], tm_time.tm_mday); // date - fmt_helper::append_str(days[tm_time.tm_wday], dest); + fmt_helper::append_c_str(days[tm_time.tm_wday], dest); dest.push_back(' '); - fmt_helper::append_str(months[tm_time.tm_mon], dest); + fmt_helper::append_c_str(months[tm_time.tm_mon], dest); dest.push_back(' '); fmt_helper::append_int(tm_time.tm_mday, dest); dest.push_back(' ');