C++ Logo

std-proposals

Advanced search

Re: [std-proposals] void std::optional<T>::abandon(void) noexcept

From: Frederick Virchanza Gotham <cauldwell.thomas_at_[hidden]>
Date: Wed, 29 Nov 2023 23:15:10 +0000
On Wed, Nov 29, 2023 at 7:51 PM Thiago Macieira wrote:
>
> The first line isn't necessary.


I won't use the memset in future since I've learned about how
"no_unique_address" works today. Normally though in my code I take a
'belt and braces' approach; I have lines of code throughout my
codebases with a trailing comment reading "not necessary but paranoia
is good". It doesn't prevent bugs altogether but it can lessen the
damage caused by a future bug.

Received on 2023-11-29 23:15:23