C++ Logo


Advanced search

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

From: Ville Voutilainen <ville.voutilainen_at_[hidden]>
Date: Tue, 27 Apr 2021 19:41:51 +0300
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 11:42:04