Opened 4 years ago
#13586 new Bugs
array::rangecheck() allows access one element past end of array
Reported by: | anonymous | Owned by: | Marshall Clow |
---|---|---|---|
Milestone: | To Be Determined | Component: | array |
Version: | Boost 1.67.0 | Severity: | Problem |
Keywords: | Cc: |
Description
The array::rangecheck method does not throw an out of range exception for an index equal to the array size.
This makes the at() method not throw an exception for N as index value. This differs from the documentation for that method.
Note: I discovered this by reading the code and have not made any tests of this behavior.
Note:
See TracTickets
for help on using tickets.