mirror of
https://github.com/boostorg/safe_numerics.git
synced 2026-02-09 11:22:23 +00:00
progress on example 93 to demonstrate trapping all potential exceptions at compile time
removed constexpr from exception policies. this eliminates obstacle to gcc compilation which doesn't support constexpr throw unfortunately, all versions of gcc trip compiler fault so gcc not supported for now safe_literal - make this an unsafe type since it doesn't have policies - this might change in the future
This commit is contained in:
@@ -35,7 +35,7 @@ auto f(const safe_t & x, const safe_t & y){
|
||||
}
|
||||
|
||||
int main(int argc, const char * argv[]){
|
||||
std::cout << "example 83:\n";
|
||||
std::cout << "example 84:\n";
|
||||
try{
|
||||
input_safe_t x, y;
|
||||
std::cin >> x >> y; // read varibles, throw exception
|
||||
|
||||
Reference in New Issue
Block a user