mirror of
https://github.com/gabime/spdlog.git
synced 2026-01-02 01:47:54 +08:00
Backport warning fix from fmt head
This commit is contained in:
@@ -927,7 +927,7 @@ class locale_ref {
|
|||||||
template <typename Locale, FMT_ENABLE_IF(sizeof(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);
|
detail::ignore_unused(isalpha('x', loc));
|
||||||
}
|
}
|
||||||
|
|
||||||
inline explicit operator bool() const noexcept { return locale_ != nullptr; }
|
inline explicit operator bool() const noexcept { return locale_ != nullptr; }
|
||||||
|
|||||||
Reference in New Issue
Block a user