Hacker News new | past | comments | ask | show | jobs | submit login

In C++, the way around this is to use inheritance rather than members, since base and derived classes may obviously have the same address.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: