Robert Ramey
937928693d
corrected error in compile time casting for both safe_integer and safe_literal. Added test_cast_constexpr
2019-12-11 22:34:17 -08:00
Robert Ramey
899e5c1b48
removed dependency on boost preprocessor
...
removed last dependency on boost mpl
2018-11-23 15:40:44 -08:00
Robert Ramey
1bdf30e2b2
clean up exception catching to suppress warnings.
...
sync up class and struct
2018-09-30 17:39:33 -07:00
Robert Ramey
52e0a2fe03
correction to exception expected
...
add example8 for difference between two unsigned ints
update documentation - pending issues
2018-09-04 13:37:21 -07:00
Robert Ramey
0e25e2095b
alter directory structure to comply with boost requirements
2018-08-16 11:03:38 -07:00
Robert Ramey
1490e9fe57
refactored to implement checked_result arithmetic - still some tests to fix
2018-03-13 15:04:16 -07:00
Robert Ramey
86910466a8
Intermediate working version
...
Making way for checked_float, checked_money, etc
a) factoring checked into checked_integer etc.
b) moved some tests from test_z to official tests
c) added test_rational which tests interoperability with boost::rational
d) moved safe_range to safe_integer_range
2017-07-08 12:48:37 -07:00
Robert Ramey
3d67f22735
made fixes to pass tests for GCC compilers.
...
made jam files to be compatible with boost
made version of apveyor.yml which might work
2017-06-14 12:25:07 -07:00
Robert Ramey
38e72bd04f
included checked::equal to trap when equal comparison fails due to changes in types
2017-06-12 21:20:38 -07:00
Robert Ramey
82cb6e4b60
working on modulus
2015-11-15 20:24:17 -08:00
Robert Ramey
1336d0ddb0
added termination messages
2015-11-09 16:06:06 -08:00
Robert Ramey
d33389c450
converted test_conversion to
...
test_construction
test_assignment
pending - make m_t private
eliminate redundant bounds checking
2015-06-28 21:24:04 -07:00
Robert Ramey
2a5c0e373c
test0 not working
...
example6 not working
2015-06-25 08:44:38 -07:00
Robert Ramey
2ebf9538d1
broke multiply and conversion
2015-06-23 15:16:04 -07:00
Robert Ramey
ba0040d512
Added in modulus operation and verified with tests.
...
This is a minor variation on divide
2015-06-17 09:31:29 -07:00
Robert Ramey
da574497e5
working
...
test add
test cast
test compare
test conversion
test subtract
test multiply
2014-04-14 14:41:48 -07:00
Robert Ramey
257f806f0b
working:
...
test_multiply
test_cast
2014-04-13 20:18:27 -07:00
Robert Ramey
12f5843f90
Fixed problems in testing addition operations
...
More carefully defined the concepts. That is the concept of the library is now clear:
Trap at either compile or runtime integer operations which yield a result which differs from the normal arithmetic result.
Pending on this check in:
a) only addition is fixed up so far
b) uses BOOST_TYPEOF... rather than decltype(... - final decision sill pending.
c) comments out some compile time checks which should be re-instated.
d) fixed tests so that they actually work!
2014-04-05 12:22:25 -07:00