Commit 40f15089 by Paolo Carlini Committed by Paolo Carlini

hashtable: Use __throw_exception_again, not naked throw, in the catch clauses.

2005-08-25  Paolo Carlini  <pcarlini@suse.de>

	* include/tr1/hashtable: Use __throw_exception_again,
	not naked throw, in the catch clauses.

From-SVN: r103483
parent 5ebbc0ee
2005-08-25 Paolo Carlini <pcarlini@suse.de>
* include/tr1/hashtable: Use __throw_exception_again,
not naked throw, in the catch clauses.
2005-08-24 Lawrence Lim <llim@redhat.com> 2005-08-24 Lawrence Lim <llim@redhat.com>
Jakub Jelinek <jakub@redhat.com> Jakub Jelinek <jakub@redhat.com>
Benjamin Kosnik <bkoz@redhat.com> Benjamin Kosnik <bkoz@redhat.com>
......
...@@ -59,6 +59,7 @@ ...@@ -59,6 +59,7 @@
#include <cstddef> #include <cstddef>
#include <cstdlib> #include <cstdlib>
#include <cmath> #include <cmath>
#include <bits/functexcept.h>
#include <tr1/type_traits> // For true_type and false_type #include <tr1/type_traits> // For true_type and false_type
//---------------------------------------------------------------------- //----------------------------------------------------------------------
...@@ -1122,7 +1123,7 @@ namespace tr1 ...@@ -1122,7 +1123,7 @@ namespace tr1
catch(...) catch(...)
{ {
m_node_allocator.deallocate(n, 1); m_node_allocator.deallocate(n, 1);
throw; __throw_exception_again;
} }
} }
...@@ -1244,7 +1245,7 @@ namespace tr1 ...@@ -1244,7 +1245,7 @@ namespace tr1
{ {
clear(); clear();
m_deallocate_buckets(m_buckets, m_bucket_count); m_deallocate_buckets(m_buckets, m_bucket_count);
throw; __throw_exception_again;
} }
} }
...@@ -1282,7 +1283,7 @@ namespace tr1 ...@@ -1282,7 +1283,7 @@ namespace tr1
{ {
clear(); clear();
m_deallocate_buckets (m_buckets, m_bucket_count); m_deallocate_buckets (m_buckets, m_bucket_count);
throw; __throw_exception_again;
} }
} }
...@@ -1513,7 +1514,7 @@ namespace tr1 ...@@ -1513,7 +1514,7 @@ namespace tr1
catch (...) catch (...)
{ {
m_deallocate_node (new_node); m_deallocate_node (new_node);
throw; __throw_exception_again;
} }
} }
...@@ -1691,7 +1692,7 @@ namespace tr1 ...@@ -1691,7 +1692,7 @@ namespace tr1
m_deallocate_buckets(new_array, N); m_deallocate_buckets(new_array, N);
m_deallocate_nodes(m_buckets, m_bucket_count); m_deallocate_nodes(m_buckets, m_bucket_count);
m_element_count = 0; m_element_count = 0;
throw; __throw_exception_again;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment