Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r82221 - in sandbox/static_vector: boost/container test
From: adam.wulkiewicz_at_[hidden]
Date: 2012-12-27 13:47:53


Author: awulkiew
Date: 2012-12-27 13:47:52 EST (Thu, 27 Dec 2012)
New Revision: 82221
URL: http://svn.boost.org/trac/boost/changeset/82221

Log:
Fixed compilation error on compilers with variadic templates support
Text files modified:
   sandbox/static_vector/boost/container/static_vector.hpp | 2 +-
   sandbox/static_vector/test/static_vector.cpp | 1 +
   2 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-27 13:47:52 EST (Thu, 27 Dec 2012)
@@ -536,7 +536,7 @@
         errh::check_capacity(*this, m_size + 1); // may throw
 
         namespace sv = static_vector_detail;
- sv::construct(this->end(), ::boost::forward<Args>(args)); // may throw
+ sv::construct(this->end(), ::boost::forward<Args>(args)...); // may throw
         ++m_size; // update end
     }
 

Modified: sandbox/static_vector/test/static_vector.cpp
==============================================================================
--- sandbox/static_vector/test/static_vector.cpp (original)
+++ sandbox/static_vector/test/static_vector.cpp 2012-12-27 13:47:52 EST (Thu, 27 Dec 2012)
@@ -731,6 +731,7 @@
     v.push_back(V(N/2, t));
     v.insert(v.begin(), V(N/2, t));
     v.insert(v.end(), V(N/2, t));
+ v.emplace_back(V(N/2, t));
 }
 
 #ifdef BOOST_SINGLE_HEADER_UTF


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