Weird that to statically prevent a method from being hidden by a derived class in C++, you have to make it virtual, then final.
-
-
It's like you don't want it virtual at all. Don't hide and don't override. So there's this weird conceptual conflict there.
-
And I get the whole backward compatibility thing preventing this but some times it's just not worth it.
Keskustelun loppu
Uusi keskustelu -
-
-
@tloch14 iirc the final keyword tells the compiler to skip the vtable. Would be interesting to see if empty vtable is still created. -
@torokokill Some googling yields that compilers can optimize the vtable away, but I haven't found yet that they particularly do here. - Näytä vastaukset
Uusi keskustelu -
Lataaminen näyttää kestävän hetken.
Twitter saattaa olla ruuhkautunut tai ongelma on muuten hetkellinen. Yritä uudelleen tai käy Twitterin tilasivulla saadaksesi lisätietoja.