From 3978311d8c9a1d7c7a02e715a815033c1a42da89 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 b0e59ed9..c9cd65d5 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 {