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 boost::exception with proposed exception_info #2751

Merged
merged 4 commits into from Jul 11, 2017
Merged

Conversation

K-ballo
Copy link
Member

@K-ballo K-ballo commented Jul 8, 2017

No description provided.

char const* const* func =
boost::get_error_info<boost::throw_function>(e);
// retrieve information related to exception_info
if (exception_info const* xi = get_exception_info(ep)) {
Copy link
Member

Choose a reason for hiding this comment

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

What should we do if this returns nullptr?

Copy link
Member Author

Choose a reason for hiding this comment

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

Is that a possibility? If I understand the original code correctly, it would simply let the exception propagate in that situation. I can replicate the try/rethrow/catch to maintain the behavior in that case.

Copy link
Member

Choose a reason for hiding this comment

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

Yah, that might be a good idea...

Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

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

LGTM, thanks!

@hkaiser hkaiser merged commit d2c401a into master Jul 11, 2017
@hkaiser hkaiser deleted the throw_with_info branch July 11, 2017 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants