C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Relocation in C++

From: Thiago Macieira <thiago_at_[hidden]>
Date: Sun, 22 May 2022 16:47:50 -0700
On Sunday, 22 May 2022 09:46:20 PDT Edward Catmur wrote:
> If the mechanism is opt-out per type, then libc++ will opt out
> std::unique_ptr in the standard Library headers

Why would they opt-out?

> But a further criterion is rule-of-zero: classes that do not define special
> member functions (destroy, move, copy) should not need to do anything to
> gain the benefit of relocation. So those classes should not need to either
> opt in or opt out, but this should happen automatically.

See other email: does this include non-trivial rule-of-zero types?

-- 
Thiago Macieira - thiago (AT) macieira.info - thiago (AT) kde.org
   Software Architect - Intel DPG Cloud Engineering

Received on 2022-05-22 23:47:51