Robert Ramey
194d76a42e
added tests for subtract and multiply automatic
2015-08-02 11:30:14 -07:00
Robert Ramey
79d480790a
timplemented test for subtract automatic
2015-08-01 14:41:48 -07:00
Robert Ramey
321c7bbba0
updated tests to be sure that n op safe<?> is covered -
2015-07-30 13:26:48 -07:00
Robert Ramey
f7117e7cf3
improved look of documentation
2015-07-30 12:42:31 -07:00
Robert Ramey
45357c63bf
improved documentation formatting
2015-07-30 00:15:50 -07:00
Robert Ramey
0a5822c14d
working version of automatic promotion policy.
...
(right now - only working in addition!)
More examples
More complete documentation
pending issue - compile time trap
2015-07-29 13:55:57 -07:00
Robert Ramey
d60bdf1de7
Fleshing out documentation - still in progress
...
This lead to numerous small changes - which of course weren't so small
Added static asserts for some range construction / assignments.
Passing all tests.
2015-07-23 16:52:22 -07:00
Robert Ramey
64c3203ae1
Fixed compilation error in native
...
made automatic tests pass for addition
2015-07-20 12:33:29 -07:00
Robert Ramey
9bd6684c23
progress on automatic promotion policy
2015-07-18 15:38:05 -07:00
Robert Ramey
2bf3699082
corrected errors in comparison
...
implemented compile time checking to eliminate redundant run time error checking
first cut with automatic promotion
2015-07-07 14:51:33 -07:00
Robert Ramey
5ccff22568
first test of automatic promotion policy
2015-07-05 14:10:00 -07:00
Robert Ramey
78111d12e8
attempt to move pointer to common ancestor
2015-07-04 10:04:49 -07:00
Robert Ramey
bb96ebfc14
Moved policies implementation to development
2015-07-03 22:40:22 -07:00
Robert Ramey
f185d014f2
added in binary operations |, &, and ^
2015-07-03 15:30:54 -07:00
Robert Ramey
54617a8cca
implemented and tested shift operators
2015-07-03 13:48:26 -07: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
97d2b6cf12
made transition from derived classes to usage of type alias
...
pending cast from safe type to primitive integer type
2015-06-27 09:58:53 -07:00
Robert Ramey
2a5c0e373c
test0 not working
...
example6 not working
2015-06-25 08:44:38 -07:00
Robert Ramey
8df7e3bf2e
fixed multiply
2015-06-24 09:35:25 -07:00
Robert Ramey
d7ae9eb09e
fixed modulus and test_modulus
2015-06-24 09:08:40 -07:00
Robert Ramey
2ebf9538d1
broke multiply and conversion
2015-06-23 15:16:04 -07:00
Robert Ramey
69d681727c
re-factored compare
...
updated test_compare
updated safe_compare.hp
2015-06-19 08:29:53 -07:00
Robert Ramey
6b6579d48c
Updated documentation based on Damion's input
2015-06-17 11:25:28 -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
9ba1617c4e
Implemented divide operations
...
updated test_add
2015-06-15 16:18:30 -07:00
Robert Ramey
6c0365461b
Implemented multiply
...
test_multiply passes
2015-06-15 10:23:13 -07:00
Robert Ramey
00e39147a4
Resolve problems with documentation
...
a) missing concepts
b) missing examples
c) rationalized types
2015-06-10 22:46:58 -07:00
Robert Ramey
f43dfc7b38
first version with working policies
...
promotion pollicy
exception policy
improved documentation
2015-06-08 15:43:23 -07:00
Robert Ramey
5eebc2f1a8
working tests add and subtract with policies
2015-06-08 13:15:37 -07:00
Robert Ramey
7299770bdf
miscellaaneous code clean up
...
added policies documentation
2015-06-02 22:42:39 -07:00
Robert Ramey
ff4b3dca72
eliminated unused headers test_add.hpp, test_subtract.hp, etc.
...
The code in these haaders has been moved into test_add.cpp, test_subtract.cpp, etc.
2015-05-29 14:48:07 -07:00
Robert Ramey
471f1b85ec
got test_checked to work.
...
This verifies error detection for instrinsic integers at both compile and run time
2015-05-29 13:06:45 -07:00
Robert Ramey
7ce25ab9c0
testing constexpr for calculation of compile time overflows.
...
Turns out that clang doesn't just overflow - it traps if there's an overflow - basically like safe<int> does at compile time.
Upshot is we have to trap overflows at compile time WITHOUT calculating them. In retrospect this is undefined behavior but no matter.
Next iteration will deal with this.
2015-03-12 18:18:08 -07:00
Robert Ramey
599debeace
passing all addition tests
2015-03-06 22:08:46 -08:00
Robert Ramey
273d32e4df
works for subtract and add
2015-02-22 14:48:30 -08:00
Robert Ramey
fcb107840b
addition operator returns safe type - passes all current addition tests.
...
implemented policy design
implemented addition part of native policy
2015-02-16 21:06:40 -08:00
Robert Ramey
e7ab1a0073
Added one line mission statement to introduction
2015-02-12 11:16:11 -08:00
Robert Ramey
94eb08f587
changed test.cpp to test0.cpp to accommodated CMake quirk
2015-02-08 16:27:51 -08:00
Robert Ramey
0356bb1a3d
improved native policy
2015-02-08 16:26:41 -08:00
Robert Ramey
e7baf79c99
correct typo in documentation
2015-02-05 09:22:30 -08:00
Robert Ramey
569dc083c9
updated html documentation
2015-02-01 21:14:12 -08:00
Robert Ramey
642438a1fc
fill out documentation and examples 5 & 6
2015-01-31 18:35:53 -08:00
Robert Ramey
0d3af22a53
corrections adjustments motivated by first real review of the library
2015-01-30 15:55:19 -08:00
Robert Ramey
b1d4d43aba
Adjustments to pass all tests with gcc 4.8.1 -std=c++03
2015-01-12 19:06:11 -08:00
Robert Ramey
14608927a4
tweaked specifications to create better looking document with correct navigation headers/footers
2014-12-24 11:18:25 -08:00
Robert Ramey
a08f27290d
go roc parameters right
2014-12-22 22:42:18 -08:00
Robert Ramey
cdce302949
mixup multi-level index
2014-12-22 22:18:42 -08:00
Robert Ramey
f5fafcaeb1
improvement of db2html stye sheet leads to better html presentation ... to be continued
2014-12-21 10:37:12 -08:00
Robert Ramey
dcaceff4f1
corrected html fixe designations
2014-11-10 08:21:56 -08:00
Robert Ramey
c78808aa2f
changes provoked by preparation of talk for CPPCon
2014-09-07 09:21:41 -07:00