mirror of
https://github.com/open-source-parsers/jsoncpp.git
synced 2025-02-24 23:34:46 +01:00
Use move ctor in append()
This commit is contained in:
parent
21e133c6fb
commit
17c14e73a9
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user