patch json throw in nlohmann/json

This commit is contained in:
pantor
2021-11-17 10:48:14 +01:00
parent 80005c19b5
commit 79ded2ecf1

View File

@@ -16454,7 +16454,7 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
}
}
throw std::out_of_range("key not found");
JSON_THROW(std::out_of_range("key not found"));
}
const T& at(const Key& key) const
@@ -16467,7 +16467,7 @@ template <class Key, class T, class IgnoredLess = std::less<Key>,
}
}
throw std::out_of_range("key not found");
JSON_THROW(std::out_of_range("key not found"));
}
size_type erase(const Key& key)