Slight performance penalty. Basically disables an optimization where the compiler tries to deduce the actual real type of the value to make a normal function call to the overwritten method instead of doing a virtual function call
Markus Böck
07/02/2019, 8:11 PM
Basically nothing though probably
m
Marc Knaup
07/02/2019, 8:11 PM
Alright, thank you very much 🙂
c
cbruegg
07/03/2019, 8:43 AM
It's one indirection less though for every virtual function call. It really depends on the application, the performance impact can also be significant.