Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions include/boost/config/compiler/clang.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -365,6 +365,14 @@
# define BOOST_MAY_ALIAS __attribute__((__may_alias__))
#endif

#if defined(_MSC_VER) && _MSC_VER >= 1930
// In MSVC mode, [[no_unique_address]] is a no-op, matching MSVC,
// but [[msvc::no_unique_address]] works
// The condition here must match the one in visualc.hpp, to preserve
// the ABI compatibility between MSVC and Clang
#define BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
#endif

#ifndef BOOST_COMPILER
# define BOOST_COMPILER "Clang version " __clang_version__
#endif
Expand Down