diff --git a/src/zmq/include/zmq/ZmqUtils.hpp b/src/zmq/include/zmq/ZmqUtils.hpp index d48724fb..209bb369 100644 --- a/src/zmq/include/zmq/ZmqUtils.hpp +++ b/src/zmq/include/zmq/ZmqUtils.hpp @@ -14,13 +14,13 @@ #include #include -#ifdef __clang__ // TODO: replace (source_location is part of C++20 but still "experimental" for clang +#ifdef __cpp_lib_source_location +#include +#else #include namespace std { typedef std::experimental::source_location source_location; } -#else -#include #endif #ifndef ENABLE_RESULT_CHECKS