diff --git a/doc/intrusive.qbk b/doc/intrusive.qbk index 900465b..166b39d 100644 --- a/doc/intrusive.qbk +++ b/doc/intrusive.qbk @@ -3833,8 +3833,11 @@ all the objects to be inserted in intrusive containers in containers like `std:: [section:release_notes_boost_1_47_00 Boost 1.47 Release] -* Fixed bug +* Fixed bugs + [@https://svn.boost.org/trac/boost/ticket/4797 #4797], + [@https://svn.boost.org/trac/boost/ticket/5165 #5165], [@https://svn.boost.org/trac/boost/ticket/5183 #5183], + [@https://svn.boost.org/trac/boost/ticket/5191 #5191]. [endsect] diff --git a/example/doc_offset_ptr.cpp b/example/doc_offset_ptr.cpp index 064ee6e..7fb2414 100644 --- a/example/doc_offset_ptr.cpp +++ b/example/doc_offset_ptr.cpp @@ -1,6 +1,6 @@ ///////////////////////////////////////////////////////////////////////////// // -// (C) Copyright Ion Gaztanaga 2006-2009 +// (C) Copyright Ion Gaztanaga 2006-2011 // // Distributed under the Boost Software License, Version 1.0. // (See accompanying file LICENSE_1_0.txt or copy at @@ -51,7 +51,7 @@ class shared_memory_data #include //Definition of the shared memory friendly intrusive list -typedef ip::list shm_list_t; +typedef list intrusive_list_t; int main() { @@ -80,12 +80,14 @@ int main() for(int i = 0; i < MaxElem; ++i) (*pshm_vect)[i].set(i); //Now create the shared memory intrusive list - shm_list_t *plist = shm.construct(ip::anonymous_instance)(); + intrusive_list_t *plist = shm.construct(ip::anonymous_instance)(); + + //Insert objects stored in shared memory vector in the intrusive list plist->insert(plist->end(), pshm_vect->begin(), pshm_vect->end()); //Check all the inserted nodes int checker = 0; - for( shm_list_t::const_iterator it = plist->begin(), itend(plist->end()) + for( intrusive_list_t::const_iterator it = plist->begin(), itend(plist->end()) ; it != itend; ++it, ++checker){ if(it->get() != checker) return false; }