Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r77135 - trunk/boost
From: marshall_at_[hidden]
Date: 2012-02-28 13:47:29


Author: marshall
Date: 2012-02-28 13:47:28 EST (Tue, 28 Feb 2012)
New Revision: 77135
URL: http://svn.boost.org/trac/boost/changeset/77135

Log:
Use BOOST_ASSERT_MSG instead of naked BOOST_ASSERT
Text files modified:
   trunk/boost/array.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/array.hpp
==============================================================================
--- trunk/boost/array.hpp (original)
+++ trunk/boost/array.hpp 2012-02-28 13:47:28 EST (Tue, 28 Feb 2012)
@@ -118,13 +118,13 @@
         // operator[]
         reference operator[](size_type i)
         {
- BOOST_ASSERT( i < N && "out of range" );
+ BOOST_ASSERT_MSG( i < N, "out of range" );
             return elems[i];
         }
         
         const_reference operator[](size_type i) const
         {
- BOOST_ASSERT( i < N && "out of range" );
+ BOOST_ASSERT_MSG( i < N, "out of range" );
             return elems[i];
         }
 


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