mirror of
https://github.com/boostorg/config.git
synced 2025-08-01 21:34:28 +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)
|
#if __has_cpp_attribute(nodiscard)
|
||||||
# define BOOST_ATTRIBUTE_NODISCARD [[nodiscard]]
|
# define BOOST_ATTRIBUTE_NODISCARD [[nodiscard]]
|
||||||
#endif
|
#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]]
|
# define BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS [[no_unique_address]]
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user