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

Catch polymorphic exception by reference

parent a0ae86be
No related branches found
No related tags found
No related merge requests found
......@@ -97,9 +97,9 @@ int main() try
test<double,2>();
test<double,3>();
} catch (Exception e) {
} catch (Exception& e) {
std::cout << e << std::endl;
std::cout << e.what() << std::endl;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment