Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-11165

Virtual overrides not triggered for cast type

XMLWordPrintable

    • fe9bb880ae5d251e2fa12e42bf4572c7d0c52c00

      class Base { virtual void virt() {} };
      class Derived : public Base { void virt() {} };
      
      void foo()
      {
          Derived *d = new Derived;
          static_cast<Base *>(d)->virt(); // F2 jumps to Base
      }

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            orgads Orgad Shaneh
            orgads Orgad Shaneh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes