From 4d276624cb7e4afdd72df3fe097c1807e0a644bb Mon Sep 17 00:00:00 2001 From: zeffy Date: Thu, 23 Jan 2020 15:37:31 -0800 Subject: [PATCH] Remove FMT_CONSTEXPR from expression This should hopefully fix compilation on VS <2019 --- include/fmt/chrono.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/chrono.h b/include/fmt/chrono.h index 53c5260f..0769284c 100644 --- a/include/fmt/chrono.h +++ b/include/fmt/chrono.h @@ -766,7 +766,7 @@ template OutputIt format_duration_unit(OutputIt out) { if (const char* unit = get_units()) { string_view s(unit); - if FMT_CONSTEXPR (std::is_same::value) { + if (std::is_same::value) { utf8_to_utf16 u(s); return std::copy(u.c_str(), u.c_str() + u.size(), out); } else {