forked from boostorg/assert
Use std::source_location::current() in BOOST_CURRENT_LOCATION
This commit is contained in:
1 parent
8bffbbe5b0
commit
23e699b9a4
3 files changed
+49
-3
No files matched your search
@@ -118,6 +118,10 @@ template<class E, class T> std::basic_ostream<E, T> & operator<<( std::basic_ost
|
||||
|
||||
# define BOOST_CURRENT_LOCATION ::boost::source_location()
|
||||
|
||||
#elif defined(__cpp_lib_source_location) && __cpp_lib_source_location >= 201907L
|
||||
|
||||
# define BOOST_CURRENT_LOCATION ::boost::source_location(std::source_location::current())
|
||||
|
||||
#elif defined(__clang_analyzer__)
|
||||
|
||||
// Cast to char const* to placate clang-tidy
|
||||
|
||||
Reference in new issue
Block a user