mirror of
https://github.com/boostorg/config.git
synced 2025-07-30 04:17:16 +02:00
gcc: exclude attribute definition for gcc in C++03 mode.
Even though __has_attribute reports true for gcc-9.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user