Fix ABI compatibility

This commit is contained in:
Victor Zverovich
2025-02-25 13:32:24 -08:00
parent 7f7695524a
commit 3401ce2be2

View File

@@ -2271,7 +2271,7 @@ struct is_output_iterator<
#endif #endif
// A type-erased reference to an std::locale to avoid a heavy <locale> include. // A type-erased reference to an std::locale to avoid a heavy <locale> include.
struct locale_ref { class locale_ref {
#if FMT_USE_LOCALE #if FMT_USE_LOCALE
private: private:
const void* locale_; // A type-erased pointer to std::locale. 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; } inline explicit operator bool() const noexcept { return locale_ != nullptr; }
#endif // FMT_USE_LOCALE #endif // FMT_USE_LOCALE
public:
template <typename Locale> auto get() const -> Locale; template <typename Locale> auto get() const -> Locale;
}; };