This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[v3] Remove a try/catch in do_put(void*)


Hi,

tested x86-linux, committed.

Paolo.

//////////////
2003-12-10  Paolo Carlini  <pcarlini@suse.de>

	* include/bits/locale_facets.tcc (num_put::do_put(void*)):
	Remove the try/catch, not necessary.
diff -prN libstdc++-v3-orig/include/bits/locale_facets.tcc libstdc++-v3/include/bits/locale_facets.tcc
*** libstdc++-v3-orig/include/bits/locale_facets.tcc	Tue Dec  9 19:52:33 2003
--- libstdc++-v3/include/bits/locale_facets.tcc	Wed Dec 10 10:44:43 2003
*************** namespace std
*** 1061,1077 ****
        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;
! 	}
        return __s;
      }
  
--- 1061,1070 ----
        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));
!       
!       __s = _M_insert_int(__s, __io, __fill, 
! 			  reinterpret_cast<unsigned long>(__v));
!       __io.flags(__flags);
        return __s;
      }
  

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]