C++ why does this static cast work? – stackoverflow.com

Imagine this code: class Base { public: virtual void foo(){} }; class Derived: public Base { public: int i; void foo() override {} void do_derived() { std::cout << i; ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

0 Comment to "C++ why does this static cast work? – stackoverflow.com"