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:
Daniel James
2017-04-16 16:34:22 +01:00
parent 64a3be7d3e
commit 2b01bdbc25

View File

@ -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