Skip to content
This repository has been archived by the owner on Jul 19, 2022. It is now read-only.

Commit

Permalink
Merge pull request #74 from valeriyvan/patch-2
Browse files Browse the repository at this point in the history
Fixes compiler warning
  • Loading branch information
hjiang authored Nov 25, 2019
2 parents 2edb561 + 1b10ca2 commit 0b8e472
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion jsonxx.h
Original file line number Diff line number Diff line change
Expand Up @@ -518,7 +518,8 @@ inline const Object& Value::get<Object>() const {

template<typename T>
inline Object &Object::operator<<(const T &value) {
return *this << Value(value), *this;
*this << Value(value);
return *this;
}

} // namespace jsonxx
Expand Down

0 comments on commit 0b8e472

Please sign in to comment.