We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
foo.cc
clang++ -fno-exceptions foo.cc
#include "/path/to/picojson.h" int main() { return 0; } // foo.cc
It compiles successfully
Many compilation errors for example:
picojson.h:1142:3: error: cannot use 'throw' with exceptions disabled PICOJSON_ASSERT(0); ^
The text was updated successfully, but these errors were encountered:
As long as PICO JSON uses std:: it will not be usable in "no exceptions" projects.
Since PICO JSON is "pico" it will be not a big job (I assume) to make it usable with alternatives to std:: containers. One example is EASTL.
The first step might be a slight redesign so that PICO JSON itself does not throw exceptions.
Sorry, something went wrong.
at least libc++ supports -fno-exceptions
-fno-exceptions
https://reviews.llvm.org/D20677
Go ahead: fork and pull :)
Successfully merging a pull request may close this issue.
Repro
foo.cc
with below contentclang++ -fno-exceptions foo.cc
Expected
It compiles successfully
Actual
Many compilation errors for example:
The text was updated successfully, but these errors were encountered: