From fafedd2d5952d7cfba22e2ec7fd41f48735f4a1c Mon Sep 17 00:00:00 2001 From: gabime Date: Thu, 29 Aug 2019 00:07:21 +0300 Subject: [PATCH] Minor cleanup --- include/spdlog/details/pattern_formatter-inl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/pattern_formatter-inl.h b/include/spdlog/details/pattern_formatter-inl.h index 5f395d59..41614d0f 100644 --- a/include/spdlog/details/pattern_formatter-inl.h +++ b/include/spdlog/details/pattern_formatter-inl.h @@ -934,7 +934,7 @@ public: cache_timestamp_ = secs; } - dest.append(cached_datetime_.data(), cached_datetime_.data()+cached_datetime_.size()); + dest.append(cached_datetime_.begin(), cached_datetime_.end()); auto millis = fmt_helper::time_fraction(msg.time); fmt_helper::pad3(static_cast(millis.count()), dest);