Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81954 - sandbox-branches/geometry/index/boost/geometry/extensions/index
From: adam.wulkiewicz_at_[hidden]
Date: 2012-12-14 16:46:54


Author: awulkiew
Date: 2012-12-14 16:46:53 EST (Fri, 14 Dec 2012)
New Revision: 81954
URL: http://svn.boost.org/trac/boost/changeset/81954

Log:
assertion added in static_vector::assign();
Text files modified:
   sandbox-branches/geometry/index/boost/geometry/extensions/index/static_vector.hpp | 2 ++
   1 files changed, 2 insertions(+), 0 deletions(-)

Modified: sandbox-branches/geometry/index/boost/geometry/extensions/index/static_vector.hpp
==============================================================================
--- sandbox-branches/geometry/index/boost/geometry/extensions/index/static_vector.hpp (original)
+++ sandbox-branches/geometry/index/boost/geometry/extensions/index/static_vector.hpp 2012-12-14 16:46:53 EST (Fri, 14 Dec 2012)
@@ -155,6 +155,8 @@
     {
         size_type s = std::distance(first, last);
 
+ BOOST_ASSERT_MSG(s <= Capacity, "max capacity reached");
+
         if ( m_size <= s )
         {
             this->copy(first, first + m_size, this->ptr(0),


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