Don't include std::locale::collate value in the symbol

This commit is contained in:
Victor Zverovich 2025-10-22 13:48:13 -07:00
parent 9721d974fc
commit 9395ef5fcb

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> template <typename Locale, int = (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);