Skip to content

Commit 0096451

Browse files
Replace broken copy constructor with move constructor
The copy constructor didn't copy the changesets The actual desired behaviour is for a move anyway so this is implemented instead
1 parent bc3bc8f commit 0096451

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/util/symbol_table_writer.h

+7-2
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)