From eb8c8da8a739154e09856acb3bc66ac3951fadc1 Mon Sep 17 00:00:00 2001 From: Nikolaj Bjorner Date: Wed, 27 Oct 2021 09:38:36 +0200 Subject: [PATCH] ex handler Signed-off-by: Nikolaj Bjorner --- examples/c++/example.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/c++/example.cpp b/examples/c++/example.cpp index ff2470ba709..15a37be31e3 100644 --- a/examples/c++/example.cpp +++ b/examples/c++/example.cpp @@ -304,7 +304,7 @@ void error_example() { // The next call fails because x is a Boolean. expr n = x + 1; } - catch (exception ex) { + catch (exception & ex) { std::cout << "failed: " << ex << "\n"; } @@ -312,7 +312,7 @@ void error_example() { try { expr arg = to_expr(c, Z3_get_app_arg(c, x, 0)); } - catch (exception ex) { + catch (exception & ex) { std::cout << "failed: " << ex << "\n"; } }