Workaround ABI compatibility between clang and gcc

This commit is contained in:
Victor Zverovich 2025-10-22 12:34:47 -07:00
parent d6bdb69c62
commit 9721d974fc

View File

@ -923,7 +923,7 @@ class locale_ref {
public: public:
constexpr locale_ref() : locale_(nullptr) {} constexpr locale_ref() : locale_(nullptr) {}
template <typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)> template <typename Locale, int = Locale::collate>
locale_ref(const Locale& loc) : locale_(&loc) { locale_ref(const Locale& loc) : locale_(&loc) {
// Check if std::isalpha is found via ADL to reduce the chance of misuse. // Check if std::isalpha is found via ADL to reduce the chance of misuse.
isalpha('x', loc); isalpha('x', loc);