Ticket #5076: patch-converter_policies_hpp

File patch-converter_policies_hpp, 764 bytes (added by Markus Laker <markusl@…>, 12 years ago)

Patch that fixes the problem

Line 
1===== converter_policies.hpp 1.1 vs edited =====
2--- 1.1/boost/numeric/conversion/converter_policies.hpp 2009-07-13 14:41:34 +01:00
3+++ edited/boost/numeric/conversion/converter_policies.hpp 2011-01-14 12:06:18 +00:00
4@@ -21,6 +21,8 @@
5 #include "boost/mpl/if.hpp"
6 #include "boost/mpl/integral_c.hpp"
7
8+#include "boost/throw_exception.hpp"
9+
10 namespace boost { namespace numeric
11 {
12
13@@ -159,9 +161,9 @@
14 void operator() ( range_check_result r ) // throw(negative_overflow,positive_overflow)
15 {
16 if ( r == cNegOverflow )
17- throw negative_overflow() ;
18+ boost::throw_exception(negative_overflow()) ;
19 else if ( r == cPosOverflow )
20- throw positive_overflow() ;
21+ boost::throw_exception(positive_overflow()) ;
22 }
23 } ;
24