From 9ab39bada8b9af2ea96a40dd420afe74baf9d46e Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Thu, 15 Jan 2026 13:13:16 +0800 Subject: [PATCH] Fix C++20 concept detection --- include/fmt/base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/fmt/base.h b/include/fmt/base.h index 3bd16fcf..37eb589e 100644 --- a/include/fmt/base.h +++ b/include/fmt/base.h @@ -2803,7 +2803,7 @@ template using is_formattable = bool_constant::value, int*, T>, Char>, void>::value>; -#ifdef __cpp_concepts +#if defined(__cpp_concepts) && __cpp_concepts >= 201907L template concept formattable = is_formattable, Char>::value; #endif