Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compilation error with JSON_DIAGNOSTICS enabled #3717

Closed
1 of 2 tasks
Evil-Spirit opened this issue Aug 30, 2022 · 1 comment · Fixed by #3719
Closed
1 of 2 tasks

Compilation error with JSON_DIAGNOSTICS enabled #3717

Evil-Spirit opened this issue Aug 30, 2022 · 1 comment · Fixed by #3719
Labels
kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation

Comments

@Evil-Spirit
Copy link

Description

When JSON_DIAGNOSTICS defined, the following compilation error appears:

execeptions.hpp:119 accumulate is not member of std

Reproduction steps

#define JSON_DIAGNOSTICS
#include "nlohmann/json.hpp"

Expected vs. actual results

No compilation error should be

Minimal code example

No response

Error messages

No response

Compiler and operating system

Windows MSVC

Library version

latest

Validation

Evil-Spirit added a commit to Evil-Spirit/nlohmann-json that referenced this issue Aug 30, 2022
falbrechtskirchinger added a commit to falbrechtskirchinger/json that referenced this issue Aug 30, 2022
@falbrechtskirchinger
Copy link
Contributor

The include for std::accumulate is indeed missing. Fixed by #3719. Thanks.

@nlohmann nlohmann added this to the Release 3.11.3 milestone Aug 30, 2022
@nlohmann nlohmann added the solution: proposed fix a fix for the issue has been proposed and waits for confirmation label Aug 30, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind: bug solution: proposed fix a fix for the issue has been proposed and waits for confirmation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants