mirror of
https://github.com/fmtlib/fmt.git
synced 2025-12-06 08:46:52 +08:00
Don't pull in locale dependency
This commit is contained in:
parent
e137db699a
commit
a6e871e39b
@ -926,7 +926,7 @@ class locale_ref {
|
||||
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.
|
||||
detail::ignore_unused(isalpha('x', loc));
|
||||
detail::ignore_unused(sizeof(isalpha('x', loc)));
|
||||
}
|
||||
|
||||
inline explicit operator bool() const noexcept { return locale_ != nullptr; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user