]> gcc.gnu.org Git - gcc.git/commitdiff
stl_queue.h (priority_queue<>::push, [...]): Remove try/catch, just follow the letter...
authorPaolo Carlini <pcarlini@suse.de>
Fri, 4 Aug 2006 09:34:17 +0000 (09:34 +0000)
committerPaolo Carlini <paolo@gcc.gnu.org>
Fri, 4 Aug 2006 09:34:17 +0000 (09:34 +0000)
2006-08-04  Paolo Carlini  <pcarlini@suse.de>

* include/bits/stl_queue.h (priority_queue<>::push,
priority_queue<>::pop): Remove try/catch, just follow the
letter of the Standard.

From-SVN: r115923

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

index 5424e5717e4971e98341baf5e6a4515f062c194d..4958cf77ecf8189ec9e45597b5599d5717c65fb0 100644 (file)
@@ -1,3 +1,9 @@
+2006-08-04  Paolo Carlini  <pcarlini@suse.de>
+
+       * include/bits/stl_queue.h (priority_queue<>::push,
+       priority_queue<>::pop): Remove try/catch, just follow the
+       letter of the Standard.
+
 2006-08-03  Paolo Carlini  <pcarlini@suse.de>
 
        * include/bits/stl_queue.h: Trivial formatting fixes.
index e2cd0d5d20871a1f61b709dc7806223b21f79a02..84c003540ed422119ec9ad9c6887c963df7ffb69 100644 (file)
@@ -424,16 +424,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       void
       push(const value_type& __x)
       {
-       try
-        {
-          c.push_back(__x);
-          std::push_heap(c.begin(), c.end(), comp);
-        }
-       catch(...)
-        {
-          c.clear();
-          __throw_exception_again;
-        }
+       c.push_back(__x);
+       std::push_heap(c.begin(), c.end(), comp);
       }
 
       /**
@@ -451,16 +443,8 @@ _GLIBCXX_BEGIN_NAMESPACE(std)
       pop()
       {
        __glibcxx_requires_nonempty();
-       try
-        {
-          std::pop_heap(c.begin(), c.end(), comp);
-          c.pop_back();
-        }
-       catch(...)
-        {
-          c.clear();
-          __throw_exception_again;
-        }
+       std::pop_heap(c.begin(), c.end(), comp);
+       c.pop_back();
       }
     };
 
This page took 0.069259 seconds and 5 git commands to generate.