We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 21e133c + 17c14e7 commit 9249878Copy full SHA for 9249878
src/lib_json/json_value.cpp
@@ -1148,7 +1148,7 @@ Value const& Value::operator[](CppTL::ConstString const& key) const
1148
Value& Value::append(const Value& value) { return (*this)[size()] = value; }
1149
1150
#if JSON_HAS_RVALUE_REFERENCES
1151
- Value& Value::append(Value&& value) { return (*this)[size()] = value; }
+ Value& Value::append(Value&& value) { return (*this)[size()] = std::move(value); }
1152
#endif
1153
1154
Value Value::get(char const* key, char const* cend, Value const& defaultValue) const
0 commit comments