We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7f76955 commit 3401ce2Copy full SHA for 3401ce2
1 file changed
include/fmt/base.h
@@ -2271,7 +2271,7 @@ struct is_output_iterator<
2271
#endif
2272
2273
// A type-erased reference to an std::locale to avoid a heavy <locale> include.
2274
-struct locale_ref {
+class locale_ref {
2275
#if FMT_USE_LOCALE
2276
private:
2277
const void* locale_; // A type-erased pointer to std::locale.
@@ -2283,6 +2283,7 @@ struct locale_ref {
2283
inline explicit operator bool() const noexcept { return locale_ != nullptr; }
2284
#endif // FMT_USE_LOCALE
2285
2286
+ public:
2287
template <typename Locale> auto get() const -> Locale;
2288
};
2289
0 commit comments