Latest version 3.9.1 uses throw instead of JSON_THROW in the amalgamated json.hpp file #2934
Labels
kind: bug
solution: duplicate
the issue is a duplicate; refer to the linked issue instead
solution: proposed fix
a fix for the issue has been proposed and waits for confirmation
What is the issue you have?
In the 3.9.1 release, the amalgamated header (json.hpp), contains 2 throw statements
This causes compilation with the -fno-exceptions flag to fail.
Replacing these throw calls with JSON_THROW solves the issue.
I tried to fix the issue and create a pull request. However I couldn't find where these 2 lines are generated in the source code.
Please describe the steps to reproduce the issue.
3 Compilation fails because of the throw statements
Can you provide a small but working code example?
See above
What is the expected behavior?
Compiling with -fno-exceptions should pass
And what is the actual behavior instead?
Compilation with -fno-exceptions fails
Which compiler and operating system are you using?
Which version of the library did you use?
3.9.1
develop
branchIf you experience a compilation error: can you compile and run the unit tests?
Did not check unit tests.
The text was updated successfully, but these errors were encountered: