From 497ea883364de4f24d3c145034690f62fa63aa28 Mon Sep 17 00:00:00 2001 From: slymz Date: Tue, 27 Dec 2016 17:04:39 -0500 Subject: [PATCH 1/6] Update intrusive.qbk Minor but subtle (for beginners) correction. --- doc/intrusive.qbk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/intrusive.qbk b/doc/intrusive.qbk index 8e5b10c..22685c7 100644 --- a/doc/intrusive.qbk +++ b/doc/intrusive.qbk @@ -701,7 +701,7 @@ with the name of the file to include: These hooks have exactly the same size overhead as their analog non auto-unlinking hooks, but they have a restriction: they can only be used with -[link intrusive.presenting_containers non-constant time containers]. +[link intrusive.presenting_containers non-constant time size containers]. There is a reason for this: * Auto-unlink hooks don't store any reference to the container where they are inserted. From 140613d1ba19d63ccad92086233d55d4f4749547 Mon Sep 17 00:00:00 2001 From: Andrey Semashev Date: Tue, 4 Apr 2017 15:45:11 +0300 Subject: [PATCH 2/6] Fix a typo in the docs --- include/boost/intrusive/slist.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/boost/intrusive/slist.hpp b/include/boost/intrusive/slist.hpp index 0020699..f34350d 100644 --- a/include/boost/intrusive/slist.hpp +++ b/include/boost/intrusive/slist.hpp @@ -1115,7 +1115,7 @@ class slist_impl //! //! Throws: Nothing. //! - //! Complexity: Lineal to the elements (l - before_f + 1). + //! Complexity: Linear to the elements (l - before_f + 1). //! //! Note: Invalidates the iterators to the erased element. template From 9268e2a3d89ccac30e36bd979283b045547ef1d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Thu, 6 Apr 2017 23:32:15 +0200 Subject: [PATCH 3/6] Reuse utilities from Boost.Move --- .../intrusive/detail/pointer_element.hpp | 140 +----------------- .../boost/intrusive/detail/to_raw_pointer.hpp | 11 +- 2 files changed, 9 insertions(+), 142 deletions(-) diff --git a/include/boost/intrusive/detail/pointer_element.hpp b/include/boost/intrusive/detail/pointer_element.hpp index dd26e3c..235ecf4 100644 --- a/include/boost/intrusive/detail/pointer_element.hpp +++ b/include/boost/intrusive/detail/pointer_element.hpp @@ -23,146 +23,20 @@ #include #endif //BOOST_INTRUSIVE_DETAIL_WORKAROUND_HPP +#include + namespace boost { namespace intrusive { -namespace detail{ -////////////////////// -//struct first_param -////////////////////// +using ::boost::movelib::pointer_element; -template struct first_param -{ typedef void type; }; +namespace detail { -#if !defined(BOOST_NO_CXX11_VARIADIC_TEMPLATES) +using ::boost::movelib::detail::first_param; - template