Skip to content

Commit 7f439f4

Browse files
committed
clarify operator=
1 parent 3976f17 commit 7f439f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/json/value.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,8 @@ Json::Value obj_value(Json::objectValue); // {}
255255
Value(const Value& other);
256256
~Value();
257257

258-
// Deep copy, then swap(other).
258+
/// Deep copy, then swap(other).
259+
/// \note Over-write existing comments. To preserve comments, use #swapPayload().
259260
Value& operator=(Value other);
260261
/// Swap everything.
261262
void swap(Value& other);

0 commit comments

Comments
 (0)