From b84f424c84fc572e4530fef40e0d80eda6e7401e Mon Sep 17 00:00:00 2001 From: Phil Edwards Date: Wed, 2 Oct 2002 00:58:52 +0000 Subject: [PATCH] re PR libstdc++/8096 (deque::at() throws std::range_error instead of std::out_of_range) 2002-10-01 Phil Edwards PR libstdc++/8096 * include/bits/stl_deque.h (deque::_M_range_check): Throw out_of_range, not range_error. From-SVN: r57714 --- libstdc++-v3/ChangeLog | 6 ++++++ libstdc++-v3/include/bits/stl_deque.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index e84da79c3b00..c272ea069455 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,9 @@ +2002-10-01 Phil Edwards + + PR libstdc++/8096 + * include/bits/stl_deque.h (deque::_M_range_check): Throw + out_of_range, not range_error. + 2002-09-28 Paolo Carlini * include/bits/locale_facets.tcc (num_put::_M_widen_int): diff --git a/libstdc++-v3/include/bits/stl_deque.h b/libstdc++-v3/include/bits/stl_deque.h index ce6be7e4ce2f..cbe87796770f 100644 --- a/libstdc++-v3/include/bits/stl_deque.h +++ b/libstdc++-v3/include/bits/stl_deque.h @@ -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) -- 2.47.2