|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r71466 - in sandbox/mm_ptr/boost: . detail
From: phil_at_[hidden]
Date: 2011-04-24 15:42:29
Author: pbouchard
Date: 2011-04-24 15:42:28 EDT (Sun, 24 Apr 2011)
New Revision: 71466
URL: http://svn.boost.org/trac/boost/changeset/71466
Log:
* Flipped order elements are chained
Text files modified:
sandbox/mm_ptr/boost/detail/intrusive_list.hpp | 5 +++++
sandbox/mm_ptr/boost/mm_ptr.hpp | 2 +-
2 files changed, 6 insertions(+), 1 deletions(-)
Modified: sandbox/mm_ptr/boost/detail/intrusive_list.hpp
==============================================================================
--- sandbox/mm_ptr/boost/detail/intrusive_list.hpp (original)
+++ sandbox/mm_ptr/boost/detail/intrusive_list.hpp 2011-04-24 15:42:28 EDT (Sun, 24 Apr 2011)
@@ -105,6 +105,11 @@
bool empty() const { return impl.next == & impl; }
+ void push_front(pointer i)
+ {
+ begin()->insert(i);
+ }
+
void push_back(pointer i)
{
end()->insert(i);
Modified: sandbox/mm_ptr/boost/mm_ptr.hpp
==============================================================================
--- sandbox/mm_ptr/boost/mm_ptr.hpp (original)
+++ sandbox/mm_ptr/boost/mm_ptr.hpp 2011-04-24 15:42:28 EDT (Sun, 24 Apr 2011)
@@ -411,7 +411,7 @@
for (intrusive_list::iterator<owned_base, & owned_base::init_tag_> i = p->inits_.begin(); i != p->inits_.end(); ++ i)
{
i->init_ = true;
- ps_->elements()->push_back(& i->mm_tag_);
+ ps_->elements()->push_front(& i->mm_tag_);
// iterate mm_ptr elements
for (intrusive_stack::iterator<mm_ptr, & mm_ptr::pn_> j = i->ptrs_.begin(), k; k = j, j != i->ptrs_.end(); j = k)
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk