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 {