Fixes Boost Trac #11832: "clang-cl + boost intrusive = miscompile"

This commit is contained in:
Ion Gaztañaga
2016-02-26 20:46:58 +01:00
parent 6a9fa390ae
commit 72976d34f6
2 changed files with 8 additions and 1 deletions

View File

@@ -3835,6 +3835,13 @@ to be inserted in intrusive containers are allocated using `std::vector` or `std
[section:release_notes Release Notes] [section:release_notes Release Notes]
[section:release_notes_boost_1_61_00 Boost 1.61 Release]
* Fixed bugs:
* [@https://svn.boost.org/trac/boost/ticket/11832 Boost Trac #11832: ['clang-cl + boost intrusive = miscompile]]
[endsect]
[section:release_notes_boost_1_60_00 Boost 1.60 Release] [section:release_notes_boost_1_60_00 Boost 1.60 Release]
* [link intrusive.advanced_lookups_insertions Advanced lookup and insertions] in ordered associative containers * [link intrusive.advanced_lookups_insertions Advanced lookup and insertions] in ordered associative containers

View File

@@ -24,7 +24,7 @@
#include <boost/intrusive/detail/workaround.hpp> #include <boost/intrusive/detail/workaround.hpp>
#include <cstddef> #include <cstddef>
#if defined(BOOST_MSVC) || ((defined(_WIN32) || defined(__WIN32__) || defined(WIN32)) && defined(BOOST_INTEL)) #if defined(_MSC_VER)
#define BOOST_INTRUSIVE_MSVC_ABI_PTR_TO_MEMBER #define BOOST_INTRUSIVE_MSVC_ABI_PTR_TO_MEMBER
#include <boost/static_assert.hpp> #include <boost/static_assert.hpp>
#endif #endif