]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/boost/array.hpp
import new upstream nautilus stable release 14.2.8
[ceph.git] / ceph / src / boost / boost / array.hpp
index 210c07212544999b47ae9fe70446c3dc661fea11..99dc2c6ded03029c057b861ee8c27b736f4caa47 100644 (file)
@@ -183,7 +183,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;
         }
 
     };