Skip to content

Commit fea2d04

Browse files
Constructor and destructor of builtin functions
Mark empty constructor as protected and define destructor as virtual default.
1 parent 4a7e45c commit fea2d04

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/solvers/refinement/string_refinement_util.h

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,8 @@ class equation_symbol_mappingt
145145
class string_builtin_functiont
146146
{
147147
public:
148-
string_builtin_functiont() = default;
149148
string_builtin_functiont(const string_builtin_functiont &) = delete;
149+
virtual ~string_builtin_functiont() = default;
150150

151151
virtual optionalt<array_string_exprt> string_result() const
152152
{
@@ -160,6 +160,9 @@ class string_builtin_functiont
160160

161161
virtual optionalt<exprt>
162162
eval(const std::function<exprt(const exprt &)> &get_value) const = 0;
163+
164+
protected:
165+
string_builtin_functiont() = default;
163166
};
164167

165168
/// String builtin_function transforming one string into another

0 commit comments

Comments
 (0)