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

Commit 0b8e472

Browse files
authored
Merge pull request #74 from valeriyvan/patch-2
Fixes compiler warning
2 parents 2edb561 + 1b10ca2 commit 0b8e472

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jsonxx.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -518,7 +518,8 @@ inline const Object& Value::get<Object>() const {
518518

519519
template<typename T>
520520
inline Object &Object::operator<<(const T &value) {
521-
return *this << Value(value), *this;
521+
*this << Value(value);
522+
return *this;
522523
}
523524

524525
} // namespace jsonxx

0 commit comments

Comments
 (0)