Use BOOST_ASSERT_MSG instead of naked BOOST_ASSERT

[SVN r77135]
This commit is contained in:
Marshall Clow
2012-02-28 18:47:28 +00:00
parent e6a44cf529
commit 992299f2bf

View File

@ -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];
}