Skip to content

Commit

Permalink
fix build warning+error in c++ example
Browse files Browse the repository at this point in the history
  • Loading branch information
nunoplopes committed Jun 17, 2022
1 parent d9fcfda commit fcbbf7b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/c++/example.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Copyright (c) 2015 Microsoft Corporation
--*/

#include <iostream>
#include<vector>
#include"z3++.h"

Expand Down Expand Up @@ -737,7 +738,7 @@ void tactic_example8() {
try {
t(g);
}
catch (exception) {
catch (exception&) {
std::cout << "tactic failed...\n";
}
std::cout << "trying again...\n";
Expand Down

0 comments on commit fcbbf7b

Please sign in to comment.