File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -447,6 +447,10 @@ Json::Value obj_value(Json::objectValue); // {}
447447 // / Equivalent to jsonvalue[jsonvalue.size()] = value;
448448 Value& append (const Value& value);
449449
450+ #ifdef JSON_HAS_RVALUE_REFERENCES
451+ Value& append (Value&& value);
452+ #endif
453+
450454 // / Access an object value by name, create a null member if it does not exist.
451455 // / \note Because of our implementation, keys are limited to 2^30 -1 chars.
452456 // / Exceeding that will cause an exception.
Original file line number Diff line number Diff line change @@ -1145,6 +1145,10 @@ Value const& Value::operator[](CppTL::ConstString const& key) const
11451145
11461146Value& Value::append (const Value& value) { return (*this )[size ()] = value; }
11471147
1148+ #ifdef JSON_HAS_RVALUE_REFERENCES
1149+ Value& Value::append (Value&& value) { return (*this )[size ()] = value; }
1150+ #endif
1151+
11481152Value Value::get (char const * key, char const * cend, Value const & defaultValue) const
11491153{
11501154 Value const * found = find (key, cend);
You can’t perform that action at this time.
0 commit comments