Files
safe_numerics/test/test_z.cpp
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

14 lines
235 B
C++

#include "../include/safe_integer.hpp"
int main(){
using namespace boost::numeric;
//safe_signed_literal2<100> one_hundred;
//one_hundred = 200;
int i = 1;
safe<int> j = 2;
j + i;
//i + j;
return 0;
}