Skip to content
Snippets Groups Projects
Commit 377ce5b9 authored by oliver.sander_at_tu-dresden.de's avatar oliver.sander_at_tu-dresden.de
Browse files

Catch polymorphic exception by value

gcc 8 warns about this.
parent 537c2f1c
No related branches found
No related tags found
No related merge requests found
...@@ -359,6 +359,6 @@ int main (int argc, char *argv[]) try ...@@ -359,6 +359,6 @@ int main (int argc, char *argv[]) try
vtkWriter.write(resultPath + "finite-strain_homotopy_" + std::to_string(i+1)); vtkWriter.write(resultPath + "finite-strain_homotopy_" + std::to_string(i+1));
} }
} 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.
Please register or to comment