Skip to content

Commit 0e64c2f

Browse files
committed
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.
1 parent 938d33c commit 0e64c2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/boost/ut.hpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,7 @@ constexpr auto regex_match(const char *str, const char *pattern) -> bool {
252252
} // namespace utility
253253

254254
namespace reflection {
255-
#if defined(__cpp_lib_source_location)
255+
#if defined(__cpp_lib_source_location) && !defined(_LIBCPP_APPLE_CLANG_VER)
256256
using source_location = std::source_location;
257257
#else
258258
class source_location {

0 commit comments

Comments
 (0)