|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r81980 - sandbox-branches/geometry/index/boost/geometry/extensions/index
From: adam.wulkiewicz_at_[hidden]
Date: 2012-12-15 15:55:38
Author: awulkiew
Date: 2012-12-15 15:55:38 EST (Sat, 15 Dec 2012)
New Revision: 81980
URL: http://svn.boost.org/trac/boost/changeset/81980
Log:
Added assertion in static_vector.
Text files modified:
sandbox-branches/geometry/index/boost/geometry/extensions/index/static_vector.hpp | 3 +++
1 files changed, 3 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-15 15:55:38 EST (Sat, 15 Dec 2012)
@@ -314,7 +314,10 @@
try
{
for ( ; first != last ; ++it, ++first, ++s )
+ {
+ BOOST_ASSERT_MSG(s < Capacity, "size can't exceed the capacity");
this->uninitialized_fill(it, *first); // may throw
+ }
m_size = s; // update end
}
catch(...)
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