Re:Show HN: libcodr7 – fundamental collections in the spirit...
by juped on Wednesday January 01, 2020 @06:37AM
(#21927654)
Casting around between the type of the first struct member and the type of the overall struct is okay under strict aliasing, but unfortunately sockaddr violates it because sockaddr isn't a member of sockaddr_in. Not that I knew this at the time, it was just a mysterious rule.
[ Parent
| on HN ]
There are no comments on this comment yet.