mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 08:46:52 +08:00
Avoid an ABI break for clang
This commit is contained in:
parent
7241bbb149
commit
b95fd6132b
@ -923,7 +923,7 @@ class locale_ref {
|
||||
public:
|
||||
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) {
|
||||
// Check if std::isalpha is found via ADL to reduce the chance of misuse.
|
||||
isalpha('x', loc);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user