Add BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS.

See https://github.com/boostorg/config/issues/257.
This commit is contained in:
jzmaddock committed 2019-04-02 18:40:25 +01:00
1 parent fb746fc6fb
commit 6ef16c8d90
3 files changed
+16

No files matched your search

+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