⚗️ add forgotten forward
This commit is contained in:
parent
418fdbab62
commit
02b36e928f
@ -4267,7 +4267,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
|
||||
}
|
||||
|
||||
const auto it = m_value.object->find(key);
|
||||
const auto it = m_value.object->find(std::forward<KeyT>(key));
|
||||
if (it != m_value.object->end())
|
||||
{
|
||||
m_value.object->erase(it);
|
||||
|
||||
@ -21170,7 +21170,7 @@ class basic_json // NOLINT(cppcoreguidelines-special-member-functions,hicpp-spec
|
||||
JSON_THROW(type_error::create(307, "cannot use erase() with " + std::string(type_name()), *this));
|
||||
}
|
||||
|
||||
const auto it = m_value.object->find(key);
|
||||
const auto it = m_value.object->find(std::forward<KeyT>(key));
|
||||
if (it != m_value.object->end())
|
||||
{
|
||||
m_value.object->erase(it);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user