Skip to content
Snippets Groups Projects
Commit 146f4171 authored by Valentin Volkl's avatar Valentin Volkl
Browse files

workaround for missing std::source_location in apple-clang

parent fd2bdac3
No related branches found
No related tags found
1 merge request!1404Workaround for missing std::source_location in apple-clang
......@@ -29,11 +29,19 @@
namespace Gaudi::PluginService::Details {
using std::source_location;
}
#elif __cplusplus >= 201402L
#elif __cplusplus >= 201402L && __has_include( <experimental/source_location> ) && false
# include <experimental/source_location>
namespace Gaudi::PluginService::Details {
using std::experimental::source_location;
}
#else
namespace Gaudi::PluginService::Details {
struct source_location {
std::string file_name() {return "";};
std::string line() {return "";}
static constexpr source_location current() { return source_location();}
};
}
#endif
namespace Gaudi {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment