Skip to content

Commit

Permalink
Prevent Apple Clang from using std::source_location
Browse files Browse the repository at this point in the history
It is probably a bug in Apple Clang, the program crash when
std::source_location is used in the tests.
  • Loading branch information
gaalexandre committed May 15, 2024
1 parent 938d33c commit 0e64c2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/boost/ut.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0e64c2f

Please sign in to comment.