forked from boostorg/unordered
It's undefined behaviour. Still happens for piecewise construction emultation for std::pair, I don't think there's anyway to avoid it. I had considered using offsetof to get a pointer to a member, but that's also undefined behaviour when a pair member doesn't have standard layout. Piecewise construction emulation has other problems anyway. So, this mostly fixes PR #5. I also stopped using addressof in self-asssignment checks as operator& is fine.