2
0
mirror of https://github.com/boostorg/asio.git synced 2026-01-19 04:02:09 +00:00

Implement feature check for std::source_location.

This commit is contained in:
Christopher Kohlhoff
2025-11-04 23:44:02 +11:00
parent 3eb04c5a46
commit d5d9428a3c

View File

@@ -598,7 +598,9 @@
// Standard library support for std::source_location.
#if !defined(BOOST_ASIO_HAS_STD_SOURCE_LOCATION)
# if !defined(BOOST_ASIO_DISABLE_STD_SOURCE_LOCATION)
// ...
# if (__cpp_lib_source_location >= 201907)
# define BOOST_ASIO_HAS_STD_SOURCE_LOCATION 1
# endif // (__cpp_lib_source_location >= 201907)
# endif // !defined(BOOST_ASIO_DISABLE_STD_SOURCE_LOCATION)
#endif // !defined(BOOST_ASIO_HAS_STD_SOURCE_LOCATION)