Remove FMT_CONSTEXPR from expression

This should hopefully fix compilation on VS <2019
This commit is contained in:
zeffy 2020-01-23 15:37:31 -08:00
parent 2c092654eb
commit 4d276624cb

View File

@ -766,7 +766,7 @@ template <typename Char, typename Period, typename OutputIt>
OutputIt format_duration_unit(OutputIt out) { OutputIt format_duration_unit(OutputIt out) {
if (const char* unit = get_units<Period>()) { if (const char* unit = get_units<Period>()) {
string_view s(unit); string_view s(unit);
if FMT_CONSTEXPR (std::is_same<Char, wchar_t>::value) { if (std::is_same<Char, wchar_t>::value) {
utf8_to_utf16 u(s); utf8_to_utf16 u(s);
return std::copy(u.c_str(), u.c_str() + u.size(), out); return std::copy(u.c_str(), u.c_str() + u.size(), out);
} else { } else {