🐛 fix bug in binary constructor

This commit is contained in:
Niels Lohmann 2020-05-09 14:16:49 +02:00
parent 3fa94f0755
commit b036ace235
No known key found for this signature in database
GPG key ID: 7F3CEA63AE251B69
2 changed files with 2 additions and 4 deletions

View file

@ -2002,8 +2002,7 @@ class basic_json
case value_t::binary:
{
m_value.binary = create<internal_binary_t>(first.m_it.binary_iterator,
last.m_it.binary_iterator);
m_value = *first.m_object->m_value.binary;
break;
}

View file

@ -17458,8 +17458,7 @@ class basic_json
case value_t::binary:
{
m_value.binary = create<internal_binary_t>(first.m_it.binary_iterator,
last.m_it.binary_iterator);
m_value = *first.m_object->m_value.binary;
break;
}