File tree Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Expand file tree Collapse file tree 2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -447,6 +447,10 @@ Json::Value obj_value(Json::objectValue); // {}
447
447
// / Equivalent to jsonvalue[jsonvalue.size()] = value;
448
448
Value& append (const Value& value);
449
449
450
+ #ifdef JSON_HAS_RVALUE_REFERENCES
451
+ Value& append (Value&& value);
452
+ #endif
453
+
450
454
// / Access an object value by name, create a null member if it does not exist.
451
455
// / \note Because of our implementation, keys are limited to 2^30 -1 chars.
452
456
// / 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
1145
1145
1146
1146
Value& Value::append (const Value& value) { return (*this )[size ()] = value; }
1147
1147
1148
+ #ifdef JSON_HAS_RVALUE_REFERENCES
1149
+ Value& Value::append (Value&& value) { return (*this )[size ()] = value; }
1150
+ #endif
1151
+
1148
1152
Value Value::get (char const * key, char const * cend, Value const & defaultValue) const
1149
1153
{
1150
1154
Value const * found = find (key, cend);
You can’t perform that action at this time.
0 commit comments