Skip to content

Commit

Permalink
Fix experimental::source_location handling
Browse files Browse the repository at this point in the history
clang 18 moved it out of experimental.
  • Loading branch information
frankosterfeld committed Apr 26, 2024
1 parent 43058c4 commit 283a2c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/zmq/include/zmq/ZmqUtils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,13 @@
#include <string>
#include <type_traits>

#ifdef __clang__ // TODO: replace (source_location is part of C++20 but still "experimental" for clang
#ifdef __cpp_lib_source_location
#include <source_location>
#else
#include <experimental/source_location>
namespace std {
typedef std::experimental::source_location source_location;
}
#else
#include <source_location>
#endif

#ifndef ENABLE_RESULT_CHECKS
Expand Down

0 comments on commit 283a2c8

Please sign in to comment.