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:
Robert Ramey
2017-05-25 11:01:24 -07:00
parent 3f228716de
commit e5749b5b4a
18 changed files with 296 additions and 273 deletions

View File

@@ -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