summaryrefslogtreecommitdiff
path: root/boost/array.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/array.hpp')
-rw-r--r--boost/array.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/array.hpp b/boost/array.hpp
index 210c072125..99dc2c6ded 100644
--- a/boost/array.hpp
+++ b/boost/array.hpp
@@ -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;
}
};