From 0e64c2f643ca656277db234d35aa68d32ccf575d Mon Sep 17 00:00:00 2001 From: alexandre Date: Wed, 15 May 2024 19:33:39 +0200 Subject: [PATCH] Prevent Apple Clang from using std::source_location It is probably a bug in Apple Clang, the program crash when std::source_location is used in the tests. --- include/boost/ut.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/ut.hpp b/include/boost/ut.hpp index 490ff612..1a686c3e 100644 --- a/include/boost/ut.hpp +++ b/include/boost/ut.hpp @@ -252,7 +252,7 @@ constexpr auto regex_match(const char *str, const char *pattern) -> bool { } // namespace utility namespace reflection { -#if defined(__cpp_lib_source_location) +#if defined(__cpp_lib_source_location) && !defined(_LIBCPP_APPLE_CLANG_VER) using source_location = std::source_location; #else class source_location {