Added assertion in static_vector.

[SVN r81980]
This commit is contained in:
Adam Wulkiewicz
2012-12-15 20:55:38 +00:00
parent ba031be21a
commit b985f5a561

View File

@@ -314,7 +314,10 @@ private:
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(...)