2 ms·
Why bother to write the vtable in the first place? My experience is that C++ that's written for performance will often prefer the use of templates over inherit
by vitus 6y ago
Why bother to write the vtable in the first place?
My experience is that C++ that's written for performance will often prefer the use of templates over inheritance since the cost is then paid upfront by the compiler. What's stopping a C programmer from hand-coding template instantiations (via macro or otherwise)?
- jeffbee 6y agoSure you are welcome to reimplement C++ in C macros. When your time is worthless anything is possible.
- Skunkleton 6y ago> When your time is worthless anything is possible. I kinda want this on a mug or something.