Skip to content

Commit 3401ce2

Browse files
committed
Fix ABI compatibility
1 parent 7f76955 commit 3401ce2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

include/fmt/base.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2271,7 +2271,7 @@ struct is_output_iterator<
22712271
#endif
22722272

22732273
// A type-erased reference to an std::locale to avoid a heavy <locale> include.
2274-
struct locale_ref {
2274+
class locale_ref {
22752275
#if FMT_USE_LOCALE
22762276
private:
22772277
const void* locale_; // A type-erased pointer to std::locale.
@@ -2283,6 +2283,7 @@ struct locale_ref {
22832283
inline explicit operator bool() const noexcept { return locale_ != nullptr; }
22842284
#endif // FMT_USE_LOCALE
22852285

2286+
public:
22862287
template <typename Locale> auto get() const -> Locale;
22872288
};
22882289

0 commit comments

Comments
 (0)