Weird that to statically prevent a method from being hidden by a derived class in C++, you have to make it virtual, then final.
-
-
Vastauksena käyttäjälle @tloch14
But will that create a vtable entry? I hope not. Kinda wish C++ would just not let you hide base methods at all.
#programming2 vastausta 0 uudelleentwiittausta 1 tykkäys -
Vastauksena käyttäjälle @tloch14
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.
1 vastaus 0 uudelleentwiittausta 0 tykkäystä
And I get the whole backward compatibility thing preventing this but some times it's just not worth it.
12.25 - 11. helmik. 2016
0 vastausta
0 uudelleentwiittausta
0 tykkäystä
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.