diff options
| author | robot-contrib <[email protected]> | 2022-08-06 01:08:26 +0300 | 
|---|---|---|
| committer | robot-contrib <[email protected]> | 2022-08-06 01:08:26 +0300 | 
| commit | 4382ded89c435e345399a684a1eda937fd348560 (patch) | |
| tree | b15c2083713ea187806b06106432d7a33c2bfc7d /contrib/restricted/boost/array/include | |
| parent | 7a407676c23bc19a4a10c86ea7093822406253d7 (diff) | |
Update contrib/restricted/boost/array to 1.79.0
Diffstat (limited to 'contrib/restricted/boost/array/include')
| -rw-r--r-- | contrib/restricted/boost/array/include/boost/array.hpp | 5 | 
1 files changed, 2 insertions, 3 deletions
| diff --git a/contrib/restricted/boost/array/include/boost/array.hpp b/contrib/restricted/boost/array/include/boost/array.hpp index 210c0721254..a32d1e99c62 100644 --- a/contrib/restricted/boost/array/include/boost/array.hpp +++ b/contrib/restricted/boost/array/include/boost/array.hpp @@ -41,13 +41,12 @@  #endif  #include <cstddef> +#include <iterator>  #include <stdexcept>  #include <boost/assert.hpp>  #include <boost/static_assert.hpp>  #include <boost/swap.hpp> -// Handles broken standard libraries better than <iterator> -#include <boost/detail/iterator.hpp>  #include <boost/throw_exception.hpp>  #include <algorithm> @@ -183,7 +182,7 @@ namespace boost {          // check range (may be private because it is static)          static BOOST_CONSTEXPR bool rangecheck (size_type i) { -            return i > size() ? boost::throw_exception(std::out_of_range ("array<>: index out of range")), true : true; +            return i >= size() ? boost::throw_exception(std::out_of_range ("array<>: index out of range")), true : true;          }      }; | 
