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

Replace try/catch with macros from no_exceptions_support #21

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

cdglove
Copy link

@cdglove cdglove commented Feb 21, 2016

Allows property_tree to be used in environments without exceptions.

…erty can be used in environments without exceptions.
// parameter "e" in the catch handler. Declaring a local variable
// here does not hurt and will be "used" to make the code in the
// handler compilable although the code will never be executed.
info_parser_error e("", "", 0); ignore_unused(e);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I actually don't like this hack because it could generate code. I'm going to email the mailing list to come up with an alternative.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant