Daily bit(e) of C++ #319, Type erasure imitating dynamic dispatch using void* and function pointers.
Could you explain why this is better than virtual methods? In the end you’re still referencing the implementation through a pointer, hence introducing the same level of indirection
Daily bit(e) of C++ | Type erasure: void*
Could you explain why this is better than virtual methods? In the end you’re still referencing the implementation through a pointer, hence introducing the same level of indirection