]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR libstdc++/8096 (deque::at() throws std::range_error instead of std::out_of_range)
authorPhil Edwards <pme@gcc.gnu.org>
Wed, 2 Oct 2002 00:58:52 +0000 (00:58 +0000)
committerPhil Edwards <pme@gcc.gnu.org>
Wed, 2 Oct 2002 00:58:52 +0000 (00:58 +0000)
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

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/stl_deque.h

index e84da79c3b0098f5613a5b07ca8fb2d5d31d07d5..c272ea069455fa77e8806a8244971f3edebed55d 100644 (file)
@@ -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):
index ce6be7e4ce2f52bda41940c748abfb6076c36dfd..cbe87796770f027dc1b039e30ef0125a5ad14c7d 100644 (file)
@@ -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)