Skip to content

Commit

Permalink
clarify operator=
Browse files Browse the repository at this point in the history
  • Loading branch information
cdunn2001 committed Mar 6, 2015
1 parent 3976f17 commit 7f439f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/json/value.h
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,8 @@ Json::Value obj_value(Json::objectValue); // {}
Value(const Value& other);
~Value();

// Deep copy, then swap(other).
/// Deep copy, then swap(other).
/// \note Over-write existing comments. To preserve comments, use #swapPayload().
Value& operator=(Value other);
/// Swap everything.
void swap(Value& other);
Expand Down

0 comments on commit 7f439f4

Please sign in to comment.