Skip to content

vector isn't destroying the elements when exceptions are thrown #59293

@philnik777

Description

@philnik777

__construct_at_end(size_type) and __construct_at_end(size_type, const_reference) don't destruct the already constructed elements when an exceptions is thrown, which means that the element's won't be destructed if an exception is thrown inside a constructor that uses one of the __construct_at_end overloads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    exception-safetylibc++libc++ C++ Standard Library. Not GNU libstdc++. Not libc++abi.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions