Avoid an ABI break for clang

This commit is contained in:
Victor Zverovich 2025-10-25 07:17:41 -07:00
parent 7241bbb149
commit b95fd6132b

View File

@ -923,7 +923,7 @@ class locale_ref {
public: public:
constexpr locale_ref() : locale_(nullptr) {} constexpr locale_ref() : locale_(nullptr) {}
template <typename Locale, int = (Locale::collate, 0)> template <typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)>
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);