The example included below "Why C and C++ Differ" is UB in both C and C++ (and says nothing about "why" C & C++ differ). The article isn't overall wrong but that bit is just...
(Feels a bit like LLM junk, but honestly not sure.)
Despite the fact they're two different languages, people are often taught as though it's basically just a subset relationship and then they carry this through into the actual software they write.
Because neither of these are memory safe languages, you are required to ensure you've made no mistakes or else anything might happen.
(Feels a bit like LLM junk, but honestly not sure.)
What's so genuine about this?
Because neither of these are memory safe languages, you are required to ensure you've made no mistakes or else anything might happen.
> and most blog posts on the topic get it wrong.
This smells like Claudism/LLMish.
https://stackoverflow.com/questions/53401654/why-was-stdbit-...
https://en.cppreference.com/cpp/language/reinterpret_cast