|
|
|
|
|
by el_pollo_diablo
36 days ago
|
|
Type punning via unions is not UB in C in general, but it is in C++ IIRC. I write "in general" because, as with other forms of memory reinterpretation (memcpy or copy through a character type), evaluating a trap representation triggers UB. |
|