mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-12 00:13:20 +00:00
test_construction test_assignment pending - make m_t private eliminate redundant bounds checking
14 lines
271 B
C++
14 lines
271 B
C++
#include <iostream>
|
|
#include "../include/safe_integer.hpp"
|
|
int main(){
|
|
try{
|
|
using namespace boost::numeric;
|
|
safe<int> x;
|
|
safe<char> y3 = x;
|
|
}
|
|
catch(std::exception & e){
|
|
std::cout << e.what() << std::endl;
|
|
}
|
|
return 0;
|
|
}
|