diff --git a/include/fmt/base.h b/include/fmt/base.h index 834e959d..094ff302 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -926,7 +926,7 @@ class locale_ref { template locale_ref(const Locale& loc) : locale_(&loc) { // Check if std::isalpha is found via ADL to reduce the chance of misuse. - detail::ignore_unused(isalpha('x', loc)); + detail::ignore_unused(sizeof(isalpha('x', loc))); } inline explicit operator bool() const noexcept { return locale_ != nullptr; }