Skip to content

Commit a9ea225

Browse files
authored
Fix C++20 concept detection (#4653)
1 parent 0e078f6 commit a9ea225

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
@@ -2803,7 +2803,7 @@ template <typename T, typename Char = char>
28032803
using is_formattable = bool_constant<!std::is_same<
28042804
detail::mapped_t<conditional_t<std::is_void<T>::value, int*, T>, Char>,
28052805
void>::value>;
2806-
#ifdef __cpp_concepts
2806+
#if defined(__cpp_concepts) && __cpp_concepts >= 201907L
28072807
template <typename T, typename Char = char>
28082808
concept formattable = is_formattable<remove_reference_t<T>, Char>::value;
28092809
#endif

0 commit comments

Comments
 (0)