diff --git a/include/fmt/base.h b/include/fmt/base.h index a37858a8..9ec43c10 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2271,7 +2271,7 @@ struct is_output_iterator< #endif // A type-erased reference to an std::locale to avoid a heavy include. -struct locale_ref { +class locale_ref { #if FMT_USE_LOCALE private: const void* locale_; // A type-erased pointer to std::locale. @@ -2283,6 +2283,7 @@ struct locale_ref { inline explicit operator bool() const noexcept { return locale_ != nullptr; } #endif // FMT_USE_LOCALE + public: template auto get() const -> Locale; };