Skip to content

Commit 9249878

Browse files
authored
Merge pull request #678 from open-source-parsers/append-move
fixes #677
2 parents 21e133c + 17c14e7 commit 9249878

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/lib_json/json_value.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ Value const& Value::operator[](CppTL::ConstString const& key) const
11481148
Value& Value::append(const Value& value) { return (*this)[size()] = value; }
11491149

11501150
#if JSON_HAS_RVALUE_REFERENCES
1151-
Value& Value::append(Value&& value) { return (*this)[size()] = value; }
1151+
Value& Value::append(Value&& value) { return (*this)[size()] = std::move(value); }
11521152
#endif
11531153

11541154
Value Value::get(char const* key, char const* cend, Value const& defaultValue) const

0 commit comments

Comments
 (0)