diff --git a/include/fmt/base.h b/include/fmt/base.h index d4847834..23c76dac 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -930,6 +930,9 @@ class locale_ref { } inline explicit operator bool() const noexcept { return locale_ != nullptr; } +#else + public: + inline explicit operator bool() const noexcept { return false; } #endif // FMT_USE_LOCALE public: