Skip to content

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

Open

Description

@mittelmark

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.

Activity

  1. j6t commented on Feb 13, 2023

    @j6t
    Owner

    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).

  2. mittelmark commented on Feb 14, 2023

    @mittelmark
    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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions