From c759e28aa77ca32d22cad79b93976a9114201408 Mon Sep 17 00:00:00 2001 From: Alexey Egorov Date: Tue, 30 Aug 2022 17:55:42 +0700 Subject: [PATCH] #3717: fix compilation error: "execeptions.hpp:119 accumulate is not member of std" --- include/nlohmann/detail/exceptions.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/nlohmann/detail/exceptions.hpp b/include/nlohmann/detail/exceptions.hpp index 96d7e0104..3d4f17398 100644 --- a/include/nlohmann/detail/exceptions.hpp +++ b/include/nlohmann/detail/exceptions.hpp @@ -14,6 +14,10 @@ #include // to_string #include // vector +#if JSON_DIAGNOSTICS +#include // accumulate +#endif + #include #include #include