From 789aa69e0a09d6b005ee8b2ae5ddd249daffe5ce Mon Sep 17 00:00:00 2001 From: marcel-behlau-elfin <45554252+marcel-behlau-elfin@users.noreply.github.com> Date: Tue, 9 Dec 2025 21:38:28 +0100 Subject: [PATCH] fix: add missing operator (#4627) --- include/fmt/base.h | 3 +++ 1 file changed, 3 insertions(+) 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: