mirror of
https://github.com/boostorg/assert.git
synced 2025-07-30 04:17:17 +02:00
Use __builtin_FUNCSIG() under MSVC 19.35+. Fixes #35.
This commit is contained in:
@ -144,6 +144,10 @@ template<class E, class T> std::basic_ostream<E, T> & operator<<( std::basic_ost
|
||||
|
||||
# define BOOST_CURRENT_LOCATION ::boost::source_location()
|
||||
|
||||
#elif defined(BOOST_MSVC) && BOOST_MSVC >= 1935
|
||||
|
||||
# define BOOST_CURRENT_LOCATION ::boost::source_location(__builtin_FILE(), __builtin_LINE(), __builtin_FUNCSIG(), __builtin_COLUMN())
|
||||
|
||||
#elif defined(BOOST_MSVC) && BOOST_MSVC >= 1926
|
||||
|
||||
// std::source_location::current() is available in -std:c++20, but fails with consteval errors before 19.31, and doesn't produce
|
||||
|
Reference in New Issue
Block a user