From 79ded2ecf1177ab5c989c30ad7e09b211b7dfa66 Mon Sep 17 00:00:00 2001 From: pantor Date: Wed, 17 Nov 2021 10:48:14 +0100 Subject: [PATCH] patch json throw in nlohmann/json --- third_party/include/nlohmann/json.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/third_party/include/nlohmann/json.hpp b/third_party/include/nlohmann/json.hpp index a70aaf8..0868966 100644 --- a/third_party/include/nlohmann/json.hpp +++ b/third_party/include/nlohmann/json.hpp @@ -16454,7 +16454,7 @@ template , } } - 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 , } } - throw std::out_of_range("key not found"); + JSON_THROW(std::out_of_range("key not found")); } size_type erase(const Key& key)