Skip to content

Commit a78489e

Browse files
author
Mark R. Tuttle
committed
Fix depth_iterator_baset move assignment to return a value.
1 parent 960563b commit a78489e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/util/expr_iterator.h

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,10 @@ class depth_iterator_baset
164164
{ m_stack=std::move(other.m_stack); }
165165
depth_iterator_baset &operator=(const depth_iterator_baset&)=default;
166166
depth_iterator_baset &operator=(depth_iterator_baset &&other)
167-
{ m_stack=std::move(other.m_stack); }
167+
{
168+
m_stack = std::move(other.m_stack);
169+
return *this;
170+
}
168171

169172
const exprt &get_root()
170173
{

0 commit comments

Comments
 (0)