mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-22 03:32:24 +00:00
Resolving issues related to error policy - first cut. Passes all tests except shift / undefined behavior.
Still needs to be redone - but on the right track.
This commit is contained in:
@@ -34,13 +34,13 @@ template <typename T> // T is char, int, etc data type
|
||||
using safe_t = boost::numeric::safe<
|
||||
T,
|
||||
pic16_promotion,
|
||||
boost::numeric::throw_exception // use for compiling and running tests
|
||||
boost::numeric::default_exception_policy // use for compiling and running tests
|
||||
>;
|
||||
using safe_bool_t = boost::numeric::safe_unsigned_range<
|
||||
0,
|
||||
1,
|
||||
pic16_promotion,
|
||||
boost::numeric::throw_exception // use for compiling and running tests
|
||||
boost::numeric::default_exception_policy // use for compiling and running tests
|
||||
>;
|
||||
|
||||
#define DESKTOP
|
||||
|
||||
Reference in New Issue
Block a user