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
- Respect instance rules.
- Don't be a jerk.
- Please keep all posts related to C++.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.Yeah I would estimate something like 0.5%.