public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in dev-libs/boost/files: boost-1.47.0-exceptions.patch
@ 2011-10-08 17:01 Markos Chandras (hwoarang)
  0 siblings, 0 replies; only message in thread
From: Markos Chandras (hwoarang) @ 2011-10-08 17:01 UTC (permalink / raw
  To: gentoo-commits

hwoarang    11/10/08 17:01:19

  Added:                boost-1.47.0-exceptions.patch
  Log:
  Apply exceptions patch(upstream) thanks to Joel Berendzen <joelb@lanl.gov>. BUg #386097
  
  (Portage version: 2.2.0_alpha59/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  dev-libs/boost/files/boost-1.47.0-exceptions.patch

file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/boost/files/boost-1.47.0-exceptions.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-libs/boost/files/boost-1.47.0-exceptions.patch?rev=1.1&content-type=text/plain

Index: boost-1.47.0-exceptions.patch
===================================================================
--- boost/numeric/conversion/converter_policies.hpp	2008-10-13 11:00:03.000000000 +0200
+++ boost/numeric/conversion/converter_policies.hpp	2011-07-22 11:46:40.961876274 +0200
@@ -20,6 +20,7 @@ 
 
 #include "boost/mpl/if.hpp"
 #include "boost/mpl/integral_c.hpp"
+#include "boost/throw_exception.hpp"
 
 namespace boost { namespace numeric
 {
@@ -159,9 +160,9 @@ struct def_overflow_handler
   void operator() ( range_check_result r ) // throw(negative_overflow,positive_overflow)
   {
     if ( r == cNegOverflow )
-      throw negative_overflow() ;
+      boost::throw_exception( negative_overflow() ) ;
     else if ( r == cPosOverflow )
-           throw positive_overflow() ;
+      boost::throw_exception( positive_overflow() ) ;
   }
 } ;
 






^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2011-10-08 17:01 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-08 17:01 [gentoo-commits] gentoo-x86 commit in dev-libs/boost/files: boost-1.47.0-exceptions.patch Markos Chandras (hwoarang)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox