mirror of
https://github.com/boostorg/unordered.git
synced 2025-07-29 19:07:15 +02:00
More general deprecated check
`__has_cpp_attribute(deprecated)` returns true for C++11, but then warns that it's a C++14 attribute, so only check in C++14 mode.
This commit is contained in:
@ -113,7 +113,7 @@
|
||||
#endif
|
||||
|
||||
#if defined(__has_cpp_attribute) && \
|
||||
(!defined(BOOST_GCC) || defined(BOOST_GCC_CXX11))
|
||||
(!defined(__cplusplus) || __cplusplus >= 201402)
|
||||
#if __has_cpp_attribute(deprecated) && !defined(BOOST_UNORDERED_DEPRECATED)
|
||||
#define BOOST_UNORDERED_DEPRECATED(msg) [[deprecated(msg)]]
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user