From 992299f2bf63290b466b104395347e114bb81da5 Mon Sep 17 00:00:00 2001 From: Marshall Clow Date: Tue, 28 Feb 2012 18:47:28 +0000 Subject: [PATCH] Use BOOST_ASSERT_MSG instead of naked BOOST_ASSERT [SVN r77135] --- include/boost/array.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/array.hpp b/include/boost/array.hpp index ffb504b..61d50e7 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -118,13 +118,13 @@ namespace boost { // 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]; }