C++ Logo

std-proposals

Advanced search

Re: [std-proposals] vector::push_back must not invalidate past-the-end iterator

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 9 Dec 2025 10:40:02 +0200
On Tue, 9 Dec 2025 at 10:26, Nikl Kelbon via Std-Proposals
<std-proposals_at_[hidden]> wrote:
>
> > This is not motivation for changing it, you're still just saying it's possible.
>
> Did you read the code? Or how it may be motivated other than code examples?

You have there a "self-modification" example. Why is being able to do
that important enough to change the invalidation
rules? Is it common? Is it just removing a pitfall?

Does it have downsides? Does it turn off the ability to diagnose
problematic invalidation cases?

Received on 2025-12-09 08:40:16