|
|
|
|
|
by woodruffw
1571 days ago
|
|
> I mean you can't even write an allocator in standard C. I might be missing something, but I don't believe this is true? The type aliasing rules have an explicit carve-out for `char *` aliases of other types, which is intended to solve this exact issue. Similarly, C99 and C11 both allow aliasing through a union of pointers without violating the strict aliasing rule. |
|