|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r74155 - trunk/boost/container
From: igaztanaga_at_[hidden]
Date: 2011-08-30 08:50:35
Author: igaztanaga
Date: 2011-08-30 08:50:33 EDT (Tue, 30 Aug 2011)
New Revision: 74155
URL: http://svn.boost.org/trac/boost/changeset/74155
Log:
Fixed bug in vector's constructor
Text files modified:
trunk/boost/container/vector.hpp | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
Modified: trunk/boost/container/vector.hpp
==============================================================================
--- trunk/boost/container/vector.hpp (original)
+++ trunk/boost/container/vector.hpp 2011-08-30 08:50:33 EDT (Tue, 30 Aug 2011)
@@ -459,6 +459,9 @@
containers_detail::default_construct_aux_proxy<T, T*, size_type> proxy(n);
proxy.uninitialized_copy_all_to(new_mem);
//All ok, commit
+ this->members_.m_start = ret.first;
+ this->members_.m_size = n;
+ this->members_.m_capacity = real_cap;
scoped_alloc.release();
}
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