4 ms·
Is that still the case these days? I thought we lost that ability sometime around C99 (it's now UB to read from the inactive member), and you're now supposed to
by JonChesterfield 3y ago
Is that still the case these days? I thought we lost that ability sometime around C99 (it's now UB to read from the inactive member), and you're now supposed to memcpy all over the place and hope the compiler elides it.
- Denvercoder9 3y agoThat's only in C++, type punning through unions is still legal in C.