Commit 1baa5a73 authored by Niels's avatar Niels

fixed #225

parent 0951a1f9
...@@ -1580,14 +1580,14 @@ class basic_json ...@@ -1580,14 +1580,14 @@ class basic_json
for (auto& element : init) for (auto& element : init)
{ {
m_value.object->emplace(std::move(*(element[0].m_value.string)), std::move(element[1])); m_value.object->emplace(*(element[0].m_value.string), element[1]);
} }
} }
else else
{ {
// the initializer list describes an array -> create array // the initializer list describes an array -> create array
m_type = value_t::array; m_type = value_t::array;
m_value.array = create<array_t>(std::move(init)); m_value.array = create<array_t>(init);
} }
} }
......
...@@ -1580,14 +1580,14 @@ class basic_json ...@@ -1580,14 +1580,14 @@ class basic_json
for (auto& element : init) for (auto& element : init)
{ {
m_value.object->emplace(std::move(*(element[0].m_value.string)), std::move(element[1])); m_value.object->emplace(*(element[0].m_value.string), element[1]);
} }
} }
else else
{ {
// the initializer list describes an array -> create array // the initializer list describes an array -> create array
m_type = value_t::array; m_type = value_t::array;
m_value.array = create<array_t>(std::move(init)); m_value.array = create<array_t>(init);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment