mirror of
https://github.com/Z3Prover/z3
synced 2025-04-08 10:25:18 +00:00
being deliberate non-null #5156
This commit is contained in:
parent
878847179f
commit
54f04a5751
|
@ -3616,12 +3616,12 @@ namespace z3 {
|
|||
}
|
||||
|
||||
struct scoped_cb {
|
||||
user_propagator_base* p;
|
||||
scoped_cb(void* _p, Z3_solver_callback cb):p(static_cast<user_propagator_base*>(_p)) {
|
||||
p->cb = cb;
|
||||
user_propagator_base& p;
|
||||
scoped_cb(void* _p, Z3_solver_callback cb):p(*static_cast<user_propagator_base*>(_p)) {
|
||||
p.cb = cb;
|
||||
}
|
||||
~scoped_cb() {
|
||||
p->cb = nullptr;
|
||||
p.cb = nullptr;
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue