commit c7193925308d6cc3b9eff2e6d672d0f6f29812f4 parent 3937532d3956500a0af89dc667abab949f8f447f Author: Michael Savage <mikejsavage@gmail.com> Date: Tue Feb 7 19:15:26 +0200 Allow array + n Diffstat:
array.h | | | 4 | ++-- |
diff --git a/array.h b/array.h @@ -28,12 +28,12 @@ public: } array< T > operator+( size_t i ) { - ASSERT( i < n ); + ASSERT( i <= n ); return array< T >( elems + i, n - i ); } const array< T > operator+( size_t i ) const { - ASSERT( i < n ); + ASSERT( i <= n ); return array< T >( elems + i, n - i ); }