|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-05-10 09:52:14
Author: danieljames
Date: 2008-05-10 09:52:14 EDT (Sat, 10 May 2008)
New Revision: 45261
URL: http://svn.boost.org/trac/boost/changeset/45261
Log:
Fix a clumsy error.
Text files modified:
trunk/libs/unordered/test/helpers/list.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/libs/unordered/test/helpers/list.hpp
==============================================================================
--- trunk/libs/unordered/test/helpers/list.hpp (original)
+++ trunk/libs/unordered/test/helpers/list.hpp 2008-05-10 09:52:14 EDT (Sat, 10 May 2008)
@@ -161,7 +161,7 @@
void push_front(value_type const& v) {
data_.first_ = new node(v, data_.first_);
- if(data_.size_) data_.last_ptr_ = &(*data_.last_ptr_)->next_;
+ if(!data_.size_) data_.last_ptr_ = &(*data_.last_ptr_)->next_;
++data_.size_;
}
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