Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
in this function:
const_reference operator[](KeyType && key) const
{
// const operator[] only works for objects
if (JSON_HEDLEY_LIKELY(is_object()))
{
auto it = m_data.m_value.object->find(std::forward(key));
JSON_ASSERT(it != m_data.m_value.object->end());
return it->second;
}
====================
why not just throw a error? so i can use "try catch" to handle all error.
Beta Was this translation helpful? Give feedback.
All reactions