Are there practical uses for dynamic-casting to void pointer?
The dynamic_cast<void*>() can indeed be used to check for identity, even if dealing with multiple inheritance. Try this code: #include <iostream> class B { public: virtual ~B() {} }; class D1 : public B { }; class D2 : public B { }; class DD : public D1, public D2 { }; namespace { bool … Read more