3 ms·
Admittedly, adding a private member variable changes the object size and thus the ABI and thus requires recompilation of dependencies. Thinking about that, is
by hkwerf 3y ago
Admittedly, adding a private member variable changes the object size and thus the ABI and thus requires recompilation of dependencies.
Thinking about that, is there any case in which private functions can end up in a vtable? In that case, it'd break ABI too.
- NekkoDroid 3y ago> is there any case in which private functions can end up in a vtable? Yes, but it generally isn't something that is done. https://godbolt.org/z/5oPovKzoT https://godbolt.org/z/5oPovKzoT