Skip to content

Commit 46d2507

Browse files
Add move constructors to builtin_function_nodet
Because of some issues with Visual Studio these need to be defined.
1 parent 6609247 commit 46d2507

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/solvers/refinement/string_refinement_util.h

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,18 @@ class string_dependenciest
164164
: index(i), data(std::move(d))
165165
{
166166
}
167+
168+
builtin_function_nodet(builtin_function_nodet &&other)
169+
: index(other.index), data(std::move(other.data))
170+
{
171+
}
172+
173+
builtin_function_nodet &operator=(builtin_function_nodet &&other)
174+
{
175+
index = other.index;
176+
data = std::move(other.data);
177+
return *this;
178+
}
167179
};
168180

169181
/// A string node points to builtin_function on which it depends

0 commit comments

Comments
 (0)