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