There is a brief document covering this at

 

https://www.iso.org/files/live/sites/isoorg/files/developing_standards/who_develops_standards/docs/use%20of%20AI.pdf

 

Cheers,

G

 

From: Std-Proposals <std-proposals-bounces@lists.isocpp.org> On Behalf Of Andre Kostur via Std-Proposals
Sent: 04 April 2026 11:39
To: std-proposals@lists.isocpp.org
Cc: Andre Kostur <andre@kostur.net>
Subject: Re: [std-proposals] zero overhead for std::optional

 

Doesn’t the ISO prohibit AI generated text in proposals?

 

On Sat, Apr 4, 2026 at 10:19AM Peter Neiss via Std-Proposals <std-proposals@lists.isocpp.org> wrote:

Hello,

 

the std::optional as it is today has an overhead flaw with the additional bool in the implementation to check if a value is there. In a lot of major and important cases this is suboptimal. (It is necessary for the general case).

 

Principal example are pointers which have a NULL that is traditionally used to mark them as "not value".

 

I vibed (used KI claude) to generate a proposal to fix this in C++ 29.

 

Please have a look here and the attached proposal.pdf.

 

https://github.com/PeterNeiss/optional

 

TL;DR

sizeof(std::optional<int*>) == 2*sizeof(int*)  // 64bit platform: 16Byte

sizeof(std::optional<int*, nullptr>) == 2*sizeof(int*)  // 64bit platform: 8Byte

 

Yours,

Peter

--
Std-Proposals mailing list
Std-Proposals@lists.isocpp.org
https://lists.isocpp.org/mailman/listinfo.cgi/std-proposals