this post was submitted on 31 Mar 2025
9 points (84.6% liked)

C++

1951 readers
1 users here now

The center for all discussion and news regarding C++.

Rules

founded 2 years ago
MODERATORS
 

This is a status update on improvements currently in progress for hardening and securing our C++ software.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] 0xDEADBEEFCAFE 10 points 6 days ago (1 children)

We have already accomplished a great deal. Compile-time C++ is already fully free of UB, which means a huge chunk of real-world C++ is already UB-free today.

This statement is so categorically ridiculous that I have no choice but to assume that Herb Sutter is deliberately trying to mislead people. I would be very surprised if even 5% of "real-world C++" occurred at compile time. In fact, I would be very surprised if even 5% of "real-world C++" was valid constexpr that just ran at runtime.

[โ€“] FizzyOrange 3 points 6 days ago

Yeah I would estimate something like 0.5%.