From a2f62935b35aebe68a5a2f7e729ae4bb8734cfc7 Mon Sep 17 00:00:00 2001 From: Jay Berkenbilt Date: Sun, 12 Aug 2018 21:57:52 -0400 Subject: Catch exceptions as const references (fixes #236) This fix allows qpdf to compile/test cleanly with gcc 8. --- examples/pdf-split-pages.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') diff --git a/examples/pdf-split-pages.cc b/examples/pdf-split-pages.cc index b65f96ee..aa089e5a 100644 --- a/examples/pdf-split-pages.cc +++ b/examples/pdf-split-pages.cc @@ -77,7 +77,7 @@ int main(int argc, char* argv[]) { process(whoami, argv[1], argv[2]); } - catch (std::exception e) + catch (std::exception const& e) { std::cerr << whoami << ": exception: " << e.what() << std::endl; return 2; -- cgit v1.2.3-54-g00ecf