1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

Merge branch 'develop' into feature/sax2

This commit is contained in:
Niels Lohmann
2018-03-09 21:56:30 +01:00
6 changed files with 92 additions and 91 deletions

View File

@ -955,7 +955,7 @@ class basic_json
/// constructor for rvalue strings
json_value(string_t&& value)
{
string = create<string_t>(std::move(value));
string = create<string_t>(std::forward < string_t&& > (value));
}
/// constructor for objects
@ -967,7 +967,7 @@ class basic_json
/// constructor for rvalue objects
json_value(object_t&& value)
{
object = create<object_t>(std::move(value));
object = create<object_t>(std::forward < object_t&& > (value));
}
/// constructor for arrays
@ -979,7 +979,7 @@ class basic_json
/// constructor for rvalue arrays
json_value(array_t&& value)
{
array = create<array_t>(std::move(value));
array = create<array_t>(std::forward < array_t&& > (value));
}
void destroy(value_t t) noexcept