gcc: exclude attribute definition for gcc in C++03 mode.

Even though __has_attribute reports true for gcc-9.
This commit is contained in:
jzmaddock
2019-06-28 08:32:47 +01:00
parent baf3a25a65
commit 8d58766c7b

View File

@ -999,7 +999,7 @@ namespace std{ using ::type_info; }
#if __has_cpp_attribute(nodiscard)
# define BOOST_ATTRIBUTE_NODISCARD [[nodiscard]]
#endif
#if __has_cpp_attribute(no_unique_address)
#if __has_cpp_attribute(no_unique_address) && !(defined(__GNUC__) && (__cplusplus < 201100))
# define BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS [[no_unique_address]]
#endif
#endif