|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52143 - trunk/boost/numeric/ublas
From: guwi17_at_[hidden]
Date: 2009-04-02 17:46:07
Author: guwi17
Date: 2009-04-02 17:46:07 EDT (Thu, 02 Apr 2009)
New Revision: 52143
URL: http://svn.boost.org/trac/boost/changeset/52143
Log:
storage.hpp: fix #2891, now check new size instead of old one
Text files modified:
trunk/boost/numeric/ublas/storage.hpp | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: trunk/boost/numeric/ublas/storage.hpp
==============================================================================
--- trunk/boost/numeric/ublas/storage.hpp (original)
+++ trunk/boost/numeric/ublas/storage.hpp 2009-04-02 17:46:07 EDT (Thu, 02 Apr 2009)
@@ -340,12 +340,12 @@
// Resizing
BOOST_UBLAS_INLINE
void resize (size_type size) {
- BOOST_UBLAS_CHECK (size_ <= N, bad_size ());
+ BOOST_UBLAS_CHECK (size <= N, bad_size ());
size_ = size;
}
BOOST_UBLAS_INLINE
void resize (size_type size, value_type init) {
- BOOST_UBLAS_CHECK (size_ <= N, bad_size ());
+ BOOST_UBLAS_CHECK (size <= N, bad_size ());
if (size > size_)
std::fill (data_ + size_, data_ + size, init);
size_ = size;
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