diff -up boost/numeric/conversion/converter_policies.hpp\~ boost/numeric/conversion/converter_policies.hpp
|
old
|
new
|
|
| 20 | 20 | |
| 21 | 21 | #include "boost/mpl/if.hpp" |
| 22 | 22 | #include "boost/mpl/integral_c.hpp" |
| | 23 | #include "boost/throw_exception.hpp" |
| 23 | 24 | |
| 24 | 25 | namespace boost { namespace numeric |
| 25 | 26 | { |
| … |
… |
struct def_overflow_handler
|
| 159 | 160 | void operator() ( range_check_result r ) // throw(negative_overflow,positive_overflow) |
| 160 | 161 | { |
| 161 | 162 | if ( r == cNegOverflow ) |
| 162 | | throw negative_overflow() ; |
| | 163 | boost::throw_exception( negative_overflow() ) ; |
| 163 | 164 | else if ( r == cPosOverflow ) |
| 164 | | throw positive_overflow() ; |
| | 165 | boost::throw_exception( positive_overflow() ) ; |
| 165 | 166 | } |
| 166 | 167 | } ; |
| 167 | 168 | |