Skip to content

Commit 9721d97

Browse files
committed
Workaround ABI compatibility between clang and gcc
1 parent d6bdb69 commit 9721d97

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
@@ -923,7 +923,7 @@ class locale_ref {
923923
public:
924924
constexpr locale_ref() : locale_(nullptr) {}
925925

926-
template <typename Locale, FMT_ENABLE_IF(sizeof(Locale::collate) != 0)>
926+
template <typename Locale, int = Locale::collate>
927927
locale_ref(const Locale& loc) : locale_(&loc) {
928928
// Check if std::isalpha is found via ADL to reduce the chance of misuse.
929929
isalpha('x', loc);

0 commit comments

Comments
 (0)