Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> we don't want vtables

Then don't use virtual functions. Then there will be no vtables.

You might have known that already, but in general I'm surprised how many engineers think that all C++ classes have vtables. No, most in fact do not. C++ classes generally have the same memory layout as a C struct as long as you don't use virtual functions.



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

Search: