C++ Logo

std-proposals

Advanced search

Re: [std-proposals] Implicit default initializing and explicit non-initializing

From: Giuseppe D'Angelo <giuseppe.dangelo_at_[hidden]>
Date: Sun, 8 Dec 2024 14:59:15 +0100
On 08/12/2024 14:54, Paul Meckel via Std-Proposals wrote:
> Not initialized values are the source of many non-standards conforming
> code as their use is undefined. C++ is a performance first language, and
> allowing non initialized variables that will be assigned a value later
> before use is reasonable.
>
> But I propose that this should be explicit, rather than implicit.
[snip]

Please see

https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2024/p2795r5.html

merged in C++26.


Thanks,
--
Giuseppe D'Angelo

Received on 2024-12-08 13:59:19