re PR libstdc++/8096 (deque::at() throws std::range_error instead of std::out_of_range)
2002-10-01 Phil Edwards <pme@gcc.gnu.org> PR libstdc++/8096 * include/bits/stl_deque.h (deque::_M_range_check): Throw out_of_range, not range_error. From-SVN: r57714
This commit is contained in:
parent
0545e401ca
commit
b84f424c84
|
@ -1,3 +1,9 @@
|
|||
2002-10-01 Phil Edwards <pme@gcc.gnu.org>
|
||||
|
||||
PR libstdc++/8096
|
||||
* include/bits/stl_deque.h (deque::_M_range_check): Throw
|
||||
out_of_range, not range_error.
|
||||
|
||||
2002-09-28 Paolo Carlini <pcarlini@unitus.it>
|
||||
|
||||
* include/bits/locale_facets.tcc (num_put::_M_widen_int):
|
||||
|
|
|
@ -665,7 +665,7 @@ public: // Basic accessors
|
|||
|
||||
void _M_range_check(size_type __n) const {
|
||||
if (__n >= this->size())
|
||||
__throw_range_error("deque");
|
||||
__throw_out_of_range("deque");
|
||||
}
|
||||
|
||||
reference at(size_type __n)
|
||||
|
|
Loading…
Reference in New Issue