mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 16:57:03 +08:00
Workaround ABI compatibility between clang and gcc
This commit is contained in:
parent
d6bdb69c62
commit
9721d974fc
@ -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);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user