C++ Logo

std-discussion

Advanced search

Re: Unsynchronized placement-new

From: Edward Catmur <ecatmur_at_[hidden]>
Date: Tue, 20 Dec 2022 09:55:11 +0100
On Tue, 20 Dec 2022 at 09:53, <language.lawyer_at_[hidden]> wrote:

> > if two threads use the same storage for objects potentially
> concurrently, that's a data race
>
> This does not match the definition of data race.
>

I guess not. It's some kind of undefined behavior, though, per
http://eel.is/c++draft/basic#life-note-5

Received on 2022-12-20 08:55:24