Merge pull request #678 from open-source-parsers/append-move

fixes #677
This commit is contained in:
Christopher Dunn
2017-09-15 19:15:50 -05:00
committed by GitHub

View File

@@ -1148,7 +1148,7 @@ Value const& Value::operator[](CppTL::ConstString const& key) const
Value& Value::append(const Value& value) { return (*this)[size()] = value; }
#if JSON_HAS_RVALUE_REFERENCES
Value& Value::append(Value&& value) { return (*this)[size()] = value; }
Value& Value::append(Value&& value) { return (*this)[size()] = std::move(value); }
#endif
Value Value::get(char const* key, char const* cend, Value const& defaultValue) const