stackoverflow.com/a/79264263/11107541 why didn't this get deleted when the delete vote count indicator shows three delete votes? are some of those from review?
@CodyGray I mean like- it's amazing that people's social minds drove them to post multiple comments in this format. not that it's totally uncommon on SO, or even mildly uncommon outside of SO (glances at reddit). but I still found it interesting :P
me downvoting a bunch of non-answers, getting the system prompt that I haven't voted on questions in a while. "thanks, system prompt" *goes to downvote a bunch of questions with screenshots that should be code blocks
@TylerH wow I'm kinda surprised to see the history here. I followed the post just to see if anyone would vote to delete it in review (I didn't think it should be deleted). I only noticed it got deleted after I got a notification about your edit.
@CodyGray yeah my project is also on c++20. there are some tiny c++23 features I'm eyeing though. I'll be waiting for compiler support first. nobody uses my project but me, so I don't have to worry about people when picking what compilers to support :)
@CodyGray I've listened to some herb sutter talks. he says compiler vendors don't implement everything "in order" (definitely true, and also true in analogous ways outside the world of C++ like JS engines), so some stuff from 26 is already implemented.
I'm now thinking about how I want to get bits of perf back when I eventually can switch to c++26 and there's the uninitialized variable/parameter changes. I considered starting to use [[indeterminate]] in strategic places, but maybe I'll just wait and see if gcc, clang, and msvc add compiler options to opt out of that new behaviour, and add that compiler option for release builds
I actually have a macro in my project that does assertions for debug builds and assumptions for release- to the same/similar effect of what the linked code snippet does
@CodyGray no it makes sense. I think I understood it already before. I just realized now that I misunderstood the linked code snippet. I forgot that the assumption annotation is still meaningful regardless of the value of NDEBUG, whereas assert cares about it.