[PATCH] Fix stl_deque.h for -fno-exceptions

Jakub Jelinek jakub@redhat.com
Tue Oct 30 08:07:00 GMT 2001


Hi!

Ok to commit?

2001-10-30  Jakub Jelinek  <jakub@redhat.com>

	* include/bits/stl_deque.h (_M_new_elements_at_front): Use
	__throw_exception_again.
	(_M_new_elements_at_back): Likewise.

--- libstdc++-v3/include/bits/stl_deque.h.jj	Wed Oct 24 17:34:15 2001
+++ libstdc++-v3/include/bits/stl_deque.h	Tue Oct 30 17:16:02 2001
@@ -1342,7 +1342,7 @@ void deque<_Tp,_Alloc>::_M_new_elements_
   catch(...) {
     for (size_type __j = 1; __j < __i; ++__j)
       _M_deallocate_node(*(_M_start._M_node - __j));      
-    throw;
+    __throw_exception_again;
   }
 }
 
@@ -1360,7 +1360,7 @@ void deque<_Tp,_Alloc>::_M_new_elements_
   catch(...) {
     for (size_type __j = 1; __j < __i; ++__j)
       _M_deallocate_node(*(_M_finish._M_node + __j));      
-    throw;
+    __throw_exception_again;
   }
 }
 

	Jakub



More information about the Libstdc++ mailing list