upgraded to C++17 compatibility

This commit is contained in:
Marc Wäckerlin
2018-11-21 15:24:07 +00:00
parent 4528cd8d78
commit 80c80e9cc4
50 changed files with 1893 additions and 1231 deletions

View File

@@ -20,19 +20,19 @@ void unexpectedHandler() {
throw std::bad_exception(); // try to recover
}
void fn2() throw(std::bad_exception) {
void fn2() {
std::cout<<"enter fn2"<<std::endl;
throw mrw::exception(); // that's wrong, no exception excpected
std::cout<<"leave fn2"<<std::endl;
}
void fn1() throw(std::bad_exception) {
void fn1() {
std::cout<<"enter fn1"<<std::endl;
fn2();
std::cout<<"leave fn1"<<std::endl;
}
void fn0() throw(std::bad_exception) {
void fn0() {
std::cout<<"enter fn0"<<std::endl;
try {
fn1();