2003-12-10 Paolo Carlini <pcarlini@suse.de>
authorpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Dec 2003 10:06:19 +0000 (10:06 +0000)
committerpaolo <paolo@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 10 Dec 2003 10:06:19 +0000 (10:06 +0000)
* include/bits/locale_facets.tcc (num_put::do_put(void*)):
Remove the try/catch, not necessary.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@74493 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/bits/locale_facets.tcc

index bde6cbf..a328388 100644 (file)
@@ -1,5 +1,10 @@
 2003-12-10  Paolo Carlini  <pcarlini@suse.de>
 
+       * include/bits/locale_facets.tcc (num_put::do_put(void*)):
+       Remove the try/catch, not necessary.
+
+2003-12-10  Paolo Carlini  <pcarlini@suse.de>
+
        * testsuite/22_locale/locale/cons/12438.cc: Tweak memory
        limit and iterations to avoid spurious failures on some
        64 bit machines.
index ae0a4e4..a583e0e 100644 (file)
@@ -1061,17 +1061,10 @@ namespace std
       const ios_base::fmtflags __fmt = ~(ios_base::showpos | ios_base::basefield
                                         | ios_base::uppercase | ios_base::internal);
       __io.flags(__flags & __fmt | (ios_base::hex | ios_base::showbase));
-      try 
-       {
-         __s = _M_insert_int(__s, __io, __fill, 
-                             reinterpret_cast<unsigned long>(__v));
-         __io.flags(__flags);
-       }
-      catch (...) 
-       {
-         __io.flags(__flags);
-         __throw_exception_again;
-       }
+      
+      __s = _M_insert_int(__s, __io, __fill, 
+                         reinterpret_cast<unsigned long>(__v));
+      __io.flags(__flags);
       return __s;
     }