Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82068 - sandbox/static_vector/boost/container
From: athundt_at_[hidden]
Date: 2012-12-18 03:28:20


Author: ahundt
Date: 2012-12-18 03:28:19 EST (Tue, 18 Dec 2012)
New Revision: 82068
URL: http://svn.boost.org/trac/boost/changeset/82068

Log:
static_vector.hpp fixed compilation error
Text files modified:
   sandbox/static_vector/boost/container/static_vector.hpp | 3 ++-
   1 files changed, 2 insertions(+), 1 deletions(-)

Modified: sandbox/static_vector/boost/container/static_vector.hpp
==============================================================================
--- sandbox/static_vector/boost/container/static_vector.hpp (original)
+++ sandbox/static_vector/boost/container/static_vector.hpp 2012-12-18 03:28:19 EST (Tue, 18 Dec 2012)
@@ -14,6 +14,7 @@
 #include <stdexcept>
 
 #include <boost/config.hpp>
+#include <boost/swap.hpp>
 
 #include <boost/iterator/reverse_iterator.hpp>
 #include <boost/integer.hpp>
@@ -260,7 +261,7 @@
             for (; it != this->end() ; ++it, ++other_it)
                 boost::swap(*it, *other_it); // may throw
             this->insert(it,other_it,other->end()); // may throw
- other.erase(other_it_backup, other.end());
+ other.erase(other_it, other.end());
         }
         else
         {


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