Skip to content

Commit

Permalink
capture values not reference
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Nov 7, 2021
1 parent af2cc46 commit f2fcbc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/api_solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -875,7 +875,7 @@ extern "C" {
init_solver(c, s);
solver::push_eh_t _push = push_eh;
solver::pop_eh_t _pop = pop_eh;
solver::fresh_eh_t _fresh = [&](void * user_ctx, ast_manager& m, solver::context_obj*& _ctx) {
solver::fresh_eh_t _fresh = [=](void * user_ctx, ast_manager& m, solver::context_obj*& _ctx) {
ast_context_params params;
params.set_foreign_manager(&m);
auto* ctx = alloc(api::context, &params, false);
Expand Down

0 comments on commit f2fcbc7

Please sign in to comment.