Skip to content
Closed
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
6 changes: 4 additions & 2 deletions include/boost/config/compiler/visualc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,8 +273,10 @@
#define BOOST_NO_CXX17_AUTO_NONTYPE_TEMPLATE_PARAMS
#endif

#if _MSC_FULL_VER >= 192829913
// Works with /std:c++14 and /std:c++17, and performs optimization
#if _MSC_VER >= 1943
// Even though [[msvc::no_unique_address]] works on earlier versions,
// it issues a warning with /std:c++14 and /std:c++17, which is a problem
// https://github.com/boostorg/config/issues/499
#define BOOST_ATTRIBUTE_NO_UNIQUE_ADDRESS [[msvc::no_unique_address]]
#endif

Expand Down