Add a move assignment operator to ParseTree
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
This commit is contained in:
parent
a45902c9b2
commit
0b3109c989
|
@ -86,6 +86,7 @@ public:
|
|||
ParseTree(): subComponents() {};
|
||||
IS_PARSECOMPONENT constexpr explicit ParseTree(const T& element): ParseTree() { addComponent(element); }
|
||||
IS_PARSECOMPONENT constexpr ParseTree(const initializer_list<T>& elements): ParseTree() { addAllComponents(elements); }
|
||||
ParseTree& operator=(ParseTree&& parseTree) noexcept { subComponents = move(parseTree.subComponents); return *this; }
|
||||
ParseTree(ParseTree&& parseTree) noexcept: subComponents(move(parseTree.subComponents)) {}
|
||||
ParseTree(const ParseTree& parseTree) = delete;
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue