6 ms·
> 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 m
by IAmLiterallyAB 1y ago
> 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.