We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21e133c commit 17c14e7Copy full SHA for 17c14e7
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