Skip to content

Commit a6e871e

Browse files
committed
Don't pull in locale dependency
1 parent e137db6 commit a6e871e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/fmt/base.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,7 +926,7 @@ class locale_ref {
926926
template <typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)>
927927
locale_ref(const Locale& loc) : locale_(&loc) {
928928
// Check if std::isalpha is found via ADL to reduce the chance of misuse.
929-
detail::ignore_unused(isalpha('x', loc));
929+
detail::ignore_unused(sizeof(isalpha('x', loc)));
930930
}
931931

932932
inline explicit operator bool() const noexcept { return locale_ != nullptr; }

0 commit comments

Comments
 (0)