mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-11 12:02:30 +00:00
12 lines
176 B
C++
12 lines
176 B
C++
|
|
#include <iostream>
|
|
#include "safe_integer.hpp"
|
|
|
|
int main(){
|
|
boost::numeric::safe<int32_t> t1(0x80000000);
|
|
int8_t v2(0xff);
|
|
|
|
std::cout << t1 / v2;
|
|
return 0;
|
|
}
|