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

Not really. You can't dynamic_cast across across protected or private inheritance boundaries, even if the function attempting it is a friend. As long as your public inheritance hierarchy maintains your contract (and they should) you're fine.



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

Search: