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

Handling exceptions in callbacks #1

Open
szhorvat opened this issue Jan 18, 2024 · 0 comments
Open

Handling exceptions in callbacks #1

szhorvat opened this issue Jan 18, 2024 · 0 comments

Comments

@szhorvat
Copy link
Member

This is a reminder to consider a feature once this library gets mature enough.

std::current_exception() and std::rethrow_exception() are helpful in catching an exception thrown within a callback passed to a C igraph function, storing it, and rethrowing it once the C function has returned.

See: https://en.cppreference.com/w/cpp/error/current_exception

igraph-cpp should provide features to make this very easy.

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

No branches or pull requests

1 participant