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

warnings in c++17 compiler setting about uncaught_exception #2

Open
mittelmark opened this issue Feb 13, 2023 · 2 comments
Open

warnings in c++17 compiler setting about uncaught_exception #2

mittelmark opened this issue Feb 13, 2023 · 2 comments

Comments

@mittelmark
Copy link

If I compile the examples with the c++17 standard which seems to be required, at least with g++, I get warnings about deprecated uncaught_exception in line 461 and 552 which should be replaced with the pluralform uncaught_exceptions . If I do this the code compiles without errors.

@j6t
Copy link
Owner

j6t commented Feb 13, 2023

Following this advice blindly does not make the code any better than before (but not worse, either). It would be an incorrect use of uncaught_exceptions() (plural) that happens to work the same way as uncaught_exception() (singular).

@mittelmark
Copy link
Author

Sure, I do not know why they deprecate the singular;) but at some point in the future the code will not compile anymore with the singular form :(

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

2 participants