Skip to content

deallocate must not throw #1

@mabraham

Description

@mabraham

Std containers call deallocate from their allocator during their destructor. A conforming implementation must call std::terminate if a destructor would exit by throwing a new exception. So one cannot handle an error from freeing the CUDA memory by throwing anything, because it will not be caught in time. Normal practice is comment that such an error cannot be handled in a way that would make it safe to use in a generic way.

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