Unverified Commit 52321e5a authored by Dennis Jenkins's avatar Dennis Jenkins Committed by GitHub

Merge pull request #264 from knowledge4igor/fix_ub_in_copy_assignment_operator

Fix undefined behaviour in copy assignment operator
parents efe54d9e 5200abf1
......@@ -552,6 +552,7 @@ struct MoveOnCopy {
MoveOnCopy& operator=(MoveOnCopy& other) {
val = std::move(other.val);
return *this;
}
MoveOnCopy(MoveOnCopy&& other) = default;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment