mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-10-16 07:23:43 +02:00
Fix non-rvalue Json::Value assignment operator (should copy, not move)
This commit is contained in:
@@ -327,10 +327,7 @@ Json::Value obj_value(Json::objectValue); // {}
|
||||
|
||||
/// Deep copy, then swap(other).
|
||||
/// \note Over-write existing comments. To preserve comments, use #swapPayload().
|
||||
Value& operator=(const Value& other);
|
||||
#if JSON_HAS_RVALUE_REFERENCES
|
||||
Value& operator=(Value&& other);
|
||||
#endif
|
||||
Value& operator=(Value other);
|
||||
|
||||
/// Swap everything.
|
||||
void swap(Value& other);
|
||||
|
Reference in New Issue
Block a user