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