From 382478259f90e35aa31b8a4d52d16efc70132484 Mon Sep 17 00:00:00 2001 From: gabime Date: Sat, 24 Nov 2018 18:27:27 +0200 Subject: [PATCH] Fix compilation for msvc 2015 --- include/spdlog/details/pattern_formatter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/spdlog/details/pattern_formatter.h b/include/spdlog/details/pattern_formatter.h index 73e16084..4d355bc5 100644 --- a/include/spdlog/details/pattern_formatter.h +++ b/include/spdlog/details/pattern_formatter.h @@ -948,7 +948,7 @@ public: auto millis = fmt_helper::time_fraction(msg.time); fmt_helper::pad3(static_cast(millis.count()), dest); - SPDLOG_CONSTEXPR string_view_t closing_bracket{"] "}; + string_view_t closing_bracket{"] ", 2}; fmt_helper::append_string_view(closing_bracket, dest); #else // no datetime needed