From 90ed26d44b592ccba5375ef6187c04c32728ebdb Mon Sep 17 00:00:00 2001 From: Florian Albrechtskirchinger Date: Tue, 30 Aug 2022 12:59:32 +0200 Subject: [PATCH] Add missing include Fixes ##3717. --- include/nlohmann/detail/exceptions.hpp | 3 +++ single_include/nlohmann/json.hpp | 3 +++ 2 files changed, 6 insertions(+) diff --git a/include/nlohmann/detail/exceptions.hpp b/include/nlohmann/detail/exceptions.hpp index 96d7e0104..9f82d7f06 100644 --- a/include/nlohmann/detail/exceptions.hpp +++ b/include/nlohmann/detail/exceptions.hpp @@ -10,6 +10,9 @@ #include // nullptr_t #include // exception +#if JSON_DIAGNOSTICS + #include // accumulate +#endif #include // runtime_error #include // to_string #include // vector diff --git a/single_include/nlohmann/json.hpp b/single_include/nlohmann/json.hpp index 83705f9f8..b04950bfb 100644 --- a/single_include/nlohmann/json.hpp +++ b/single_include/nlohmann/json.hpp @@ -183,6 +183,9 @@ #include // nullptr_t #include // exception +#if JSON_DIAGNOSTICS + #include // accumulate +#endif #include // runtime_error #include // to_string #include // vector