Skip to content
Snippets Groups Projects
Commit d0de5feb authored by Sander, Oliver's avatar Sander, Oliver
Browse files

Catch polymorphic exception by reference

parent a977c6fd
Branches
No related tags found
No related merge requests found
......@@ -78,7 +78,7 @@ int main() try
test<Rotation<double,3>, 1>();
//test<Rotation<double,3>, 2>();
} catch (Exception e) {
std::cout << e << std::endl;
} catch (Exception& e) {
std::cout << e.what() << std::endl;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment