From 4ee6e051fedad0facf1c0523f6918cbfc7b3409b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thorsten=20J=C3=B8rgen=20Ottosen?= Date: Tue, 27 Jul 2004 20:00:34 +0000 Subject: [PATCH] *** empty log message *** [SVN r24128] --- include/boost/array.hpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/include/boost/array.hpp b/include/boost/array.hpp index b3a4d76..bcf96e6 100644 --- a/include/boost/array.hpp +++ b/include/boost/array.hpp @@ -105,31 +105,27 @@ namespace boost { // front() and back() reference front() { - BOOST_ASSERT( N > 0 && "logic error" ); return elems[0]; } const_reference front() const { - BOOST_ASSERT( N > 0 && "logic error" ); return elems[0]; } reference back() { - BOOST_ASSERT( N > 0 && "logic error" ); return elems[N-1]; } const_reference back() const { - BOOST_ASSERT( N > 0 && "logic error" ); return elems[N-1]; } // size is constant static size_type size() { return N; } - static bool empty() { return N == 0; } + static bool empty() { return false; } static size_type max_size() { return N; } enum { static_size = N };