Help for this page

Select Code to Download


  1. or download this
    class Obj {...};
    
    ...
    
    class MyBaz : public Baz, virtual public Obj {...};
    
  2. or download this
    void *ptr = (void*) static_cast<Obj*>(foo);
    
  3. or download this
    Foo* foo = dynamic_cast<MyFoo*>((Obj*) ptr);