Add BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS.

See https://github.com/boostorg/config/issues/257.
This commit is contained in:
jzmaddock
2019-04-02 18:40:25 +01:00
parent fb746fc6fb
commit 6ef16c8d90
3 changed files with 16 additions and 0 deletions
+6
View File
@@ -999,10 +999,16 @@ namespace std{ using ::type_info; }
#if __has_cpp_attribute(nodiscard)
# define BOOST_ATTRIBUTE_NODISCARD [[nodiscard]]
#endif
#if __has_cpp_attribute(no_unique_address)
# define BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS [[no_unique_address]]
#endif
#endif
#ifndef BOOST_ATTRIBUTE_NODISCARD
# define BOOST_ATTRIBUTE_NODISCARD
#endif
#ifndef BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS
# define BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS
#endif
#define BOOST_STATIC_CONSTEXPR static BOOST_CONSTEXPR_OR_CONST