Blame boost-1.48.0-exceptions.patch

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