Skip to content

Commit 0729e3d

Browse files
author
Daniel Kroening
authored
Merge pull request diffblue#1517 from NathanJPhillips/bugfix/journaling-symbol-table-constructor
Replace broken copy constructor with move constructor
2 parents 93ae9f3 + 0096451 commit 0729e3d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/util/symbol_table_writer.h

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,13 @@ class journalling_symbol_table_writert
5454

5555
public:
5656
journalling_symbol_table_writert(
57-
const journalling_symbol_table_writert &other):
58-
base_symbol_table(other.base_symbol_table)
57+
const journalling_symbol_table_writert &other)=delete;
58+
59+
journalling_symbol_table_writert(journalling_symbol_table_writert &&other)
60+
: base_symbol_table(other.base_symbol_table),
61+
inserted(std::move(other.inserted)),
62+
updated(std::move(other.updated)),
63+
removed(std::move(other.removed))
5964
{
6065
}
6166

0 commit comments

Comments
 (0)