C++ Logo


Advanced search

Re: On "transparently replaceable" in std::vector operations

From: Hyman Rosen <hyrosen_at_[hidden]>
Date: Tue, 27 Apr 2021 13:05:57 -0400
This is described in https://en.wikipedia.org/wiki/Ostrich_effect

On Tue, Apr 27, 2021, 12:41 PM Ville Voutilainen <
ville.voutilainen_at_[hidden]> wrote:

> On Tue, 27 Apr 2021 at 19:37, Hyman Rosen via Std-Discussion
> <std-discussion_at_[hidden]> wrote:
> >
> > The C++ object model is fundamentally broken. The correct definition for
> an object is a region of storage plus a type to interpret it's contents.
> The wrong definition used by C++ requires that objects be "created", and
> have "lifetimes" that "begin" and "end" when certain functions are called,
> and that pointers and references refer to created objects, not to regions
> of storage. This leads to the nonsense that you have observed.
> This is described in
> https://en.wikipedia.org/wiki/Assertiveness#Broken_record

Received on 2021-04-27 12:06:14