- 30comments
- 73comments
- 7comments
- 80comments
- 8comments
- 427comments
- 126comments
- 119comments
- 16comments
- 73comments
- 263comments
- 17comments
- 254comments
- 352comments
- —discuss
- 35comments
- 316comments
- 6comments
- 308comments
- 15comments
- 32comments
- 337comments
- 14comments
- 79comments
- 2comments
- 1comments
- 72comments
- 97comments
- 39comments
- 62comments
Does reinterpret_cast works in c++ for this?
Yeah, but it’s got some caveats and is unsafe in some cases.
https://en.cppreference.com/cpp/language/reinterpret_cast
reinterpret_cast<> for punning purposes can lead to UB. The recommended C++ alternative to avoid UB is bit_cast<>
https://stackoverflow.com/questions/53401654/why-was-stdbit-...
No.
What's so genuine about this?
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.
It continues with
This smells like Claudism/LLMish.