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:
Robert Ramey
2016-01-11 11:01:15 -08:00
parent 511046c972
commit 29cf7f3d12
13 changed files with 96 additions and 75 deletions

View File

@@ -78,12 +78,13 @@ int main(){
}
catch(std::exception & e){
std::cout << e.what() << '\n';
return 1;
// we expect to trap an exception
return 0;
}
catch(...){
std::cout << "test interrupted\n";
return 1;
}
std::cout << "end test\n";
return 0;
return 1;
}