diff --git a/include/nlohmann/json.hpp b/include/nlohmann/json.hpp index 480f0e20..9b26dd70 100644 --- a/include/nlohmann/json.hpp +++ b/include/nlohmann/json.hpp @@ -2002,8 +2002,7 @@ class basic_json case value_t::binary: { - m_value.binary = create(first.m_it.binary_iterator, - last.m_it.binary_iterator); + m_value = *first.m_object->m_value.binary; break; } diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index fc8c9026..ed415117 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -17458,8 +17458,7 @@ class basic_json case value_t::binary: { - m_value.binary = create(first.m_it.binary_iterator, - last.m_it.binary_iterator); + m_value = *first.m_object->m_value.binary; break; }