Skip to content

noexcept specifier placed on functions that may indeed throw #1660

@daniel-j-h

Description

@daniel-j-h

First example I could find: bearing.hpp, marks the get function with noexcept, guaranteeing to never throw. If the function does throw, the program gets terminated.

The problem here is that std::string can indeed throw in its constructor (e.g. in the out of memory case). This is just an example based on the first occurrence I could fine --- have to check all of them.

References:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions