mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-24 03:53:18 +08:00
use SwapPayload() to retain comments
All tests pass, but we might be missing coverage. issue #47
This commit is contained in:
@@ -406,7 +406,7 @@ Value::~Value() {
|
||||
}
|
||||
|
||||
Value& Value::operator=(Value other) {
|
||||
swapPayload(other);
|
||||
swap(other);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user