mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-17 14:02:14 +00:00
(right now - only working in addition!) More examples More complete documentation pending issue - compile time trap
14 lines
235 B
C++
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;
|
|
}
|