From 700a3484ac3562efc56bba98ed038fe24455f935 Mon Sep 17 00:00:00 2001 From: rexy712 Date: Wed, 23 Feb 2022 19:57:34 -0800 Subject: [PATCH] Fix source_location for clang --- include/rexy/source_location.hpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/rexy/source_location.hpp b/include/rexy/source_location.hpp index 7567ea6..ca992fa 100644 --- a/include/rexy/source_location.hpp +++ b/include/rexy/source_location.hpp @@ -25,7 +25,8 @@ #include //uint_least32_t -#if __cplusplus >= 202002L +//clang bug: https://bugs.llvm.org/show_bug.cgi?id=48886 +#if __cplusplus >= 202002L && !defined(__clang__) #define CONSTEVAL consteval #else #define CONSTEVAL constexpr