mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2024-12-28 03:50:53 +08:00
Merge pull request #678 from open-source-parsers/append-move
fixes #677
This commit is contained in:
commit
9249878229
@ -1148,7 +1148,7 @@ Value const& Value::operator[](CppTL::ConstString const& key) const
|
|||||||
Value& Value::append(const Value& value) { return (*this)[size()] = value; }
|
Value& Value::append(const Value& value) { return (*this)[size()] = value; }
|
||||||
|
|
||||||
#if JSON_HAS_RVALUE_REFERENCES
|
#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
|
#endif
|
||||||
|
|
||||||
Value Value::get(char const* key, char const* cend, Value const& defaultValue) const
|
Value Value::get(char const* key, char const* cend, Value const& defaultValue) const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user