Skip to content

Commit

Permalink
Merge pull request nmwsharp#21 from SvenJo/fix-catch-warings
Browse files Browse the repository at this point in the history
catch exceptions as const ref in demo_app
  • Loading branch information
nmwsharp authored Jul 20, 2019
2 parents 6f57b9a + 4187ee9 commit 45972b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/demo-app/demo_app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -349,10 +349,10 @@ int main(int argc, char** argv) {
// Parse args
try {
parser.ParseCLI(argc, argv);
} 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;
Expand Down

0 comments on commit 45972b0

Please sign in to comment.