mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-22 03:32:24 +00:00
Implement correctly ranged return types from safe operations. Before, anything checked at runtime returned the whole range for the underlying variable.
Still pending and, or and xor operations
This commit is contained in:
@@ -22,7 +22,7 @@ bool test2(){
|
||||
using namespace boost::numeric;
|
||||
checked_result<int> x1(0);
|
||||
assert(0 == x1);
|
||||
checked_result<int> x2(exception_type::overflow_error, "exception message");
|
||||
checked_result<int> x2(exception_type::positive_overflow_error, "exception message");
|
||||
assert(! x2.no_exception());
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user