Skip to content

Commit 1a373e4

Browse files
committed
Create an explicit constructor for SolverDeleter.
Fixes #257
1 parent d647071 commit 1a373e4

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

libpharos/path.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2018-2021 Carnegie Mellon University. See LICENSE file for terms.
1+
// Copyright 2018-2024 Carnegie Mellon University. See LICENSE file for terms.
22
#ifndef Pharos_Path_H
33
#define Pharos_Path_H
44

@@ -295,8 +295,9 @@ class PathFinder : public Z3PathAnalyzer {
295295
};
296296

297297
struct SolverDeleter {
298-
bool owned = true;
298+
bool owned;
299299
void operator()(PharosZ3Solver *s) const { if (owned) delete s; }
300+
explicit SolverDeleter(bool owned_ = true) : owned_{owned_} {}
300301
};
301302

302303
// We will need Z3 for this analysis

0 commit comments

Comments
 (0)