From cd14ffcf1f2b01f7ab63b44d9208105c1c55b09b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 13 May 2016 01:01:42 +0200 Subject: [PATCH] Fixed Boost Trac #12190 --- doc/intrusive.qbk | 7 +++++++ include/boost/intrusive/slist.hpp | 3 +-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/doc/intrusive.qbk b/doc/intrusive.qbk index cec74b5..ac63361 100644 --- a/doc/intrusive.qbk +++ b/doc/intrusive.qbk @@ -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_boost_1_62_00 Boost 1.62 Release] + +* Fixed bugs: + * [@https://svn.boost.org/trac/boost/ticket/12190 Boost Trac #12190: ['Intrusive List + Flat Map combination crashes]] + +[endsect] + [section:release_notes_boost_1_61_00 Boost 1.61 Release] * Fixed bugs: diff --git a/include/boost/intrusive/slist.hpp b/include/boost/intrusive/slist.hpp index d64bf49..cf8da58 100644 --- a/include/boost/intrusive/slist.hpp +++ b/include/boost/intrusive/slist.hpp @@ -343,8 +343,7 @@ class slist_impl slist_impl(BOOST_RV_REF(slist_impl) x) : data_(::boost::move(x.priv_value_traits())) { - this->priv_size_traits().set_size(size_type(0)); - node_algorithms::init_header(this->get_root_node()); + this->set_default_constructed_state(); //nothrow, no need to rollback to release elements on exception this->swap(x); }