3 ms·
Will Effective C cover the strict aliasing rule and also why the BSD sockets API seems to get away with it (e.g. (sockaddr *) &sockaddr_in)?
by commandersaki 7y ago
Will Effective C cover the strict aliasing rule and also why the BSD sockets API seems to get away with it (e.g. (sockaddr *) &sockaddr_in)?
- DougGwyn 7y agoI thought we had fixed the BSD socket aliasing a long time ago?
- AaronBallman 7y agoI don't think the book covers strict aliasing, at least not in detail.
- saagarjha 7y agoIsn't that legal if they are all in a union?