use SwapPayload() to retain comments

All tests pass, but we might be missing coverage.

issue #47
This commit is contained in:
Christopher Dunn
2015-01-20 11:02:22 -06:00
parent 94b0297dc5
commit 66eb72f121
3 changed files with 14 additions and 10 deletions

View File

@@ -406,7 +406,7 @@ Value::~Value() {
}
Value& Value::operator=(Value other) {
swapPayload(other);
swap(other);
return *this;
}