diff options
author | Taylor C. Richberger <taywee@gmx.com> | 2018-09-24 09:21:12 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-24 09:21:12 -0600 |
commit | 24868affc8f7f88ce8781bc6a21c5c7d5067c508 (patch) | |
tree | a7b759ec9a1a3b456e74df850fbf1bb65cddf70a | |
parent | Merge pull request #64 from milipili/optional-cmake-tests (diff) | |
parent | Fix error: catching polymorphic type by value (diff) | |
download | args.hxx-24868affc8f7f88ce8781bc6a21c5c7d5067c508.tar.xz |
Merge pull request #65 from Rholais/patch-1
Fix error: catching polymorphic type by value
-rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -185,17 +185,17 @@ int main(int argc, char **argv) { parser.ParseCLI(argc, argv); } - catch (args::Completion e) + catch (const args::Completion& e) { std::cout << e.what(); return 0; } - catch (args::Help) + catch (const args::Help&) { std::cout << parser; return 0; } - catch (args::ParseError e) + catch (const args::ParseError& e) { std::cerr << e.what() << std::endl; std::cerr << parser; |