Simplify locale handling

This commit is contained in:
Victor Zverovich committed 2024-09-22 10:21:19 -07:00
1 parent 80c4d42c66
commit ff92223549
6 files changed
+38 -51

No files matched your search

+5 -2
View File
@@ -2220,9 +2220,12 @@ struct locale_ref {
public:
constexpr locale_ref() : locale_(nullptr) {}
template <typename Locale> explicit locale_ref(const Locale& loc);
template <typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)>
locale_ref(const Locale& loc);
explicit operator bool() const noexcept { return locale_ != nullptr; }
#endif
#endif // FMT_USE_LOCALE
template <typename Locale> auto get() const -> Locale;
};