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

finding members of inherited template classes

XMLWordPrintable

    • 11f6ae4a143c2669a443ebcee693b71c310cf564

      Qt Creator is not able to list the members of classes which are inherited from their template parameters, like:
      template<typename T> class X: public T{};.

      The code completion of an instance X<QString> should list all members of QString.

      Or another, more complex example:
      template<typename T> class C

      {void x();}

      ;
      namespace ns{
      template<typename T> class B

      { typedef C<T> type; }

      ;
      }
      template<typename T> class A: public ns::B<T>::type{};

      (This latter case (distributed over several include files) is the structure of the Eigen 3 library (eigen.tuxfamily.org), which is (probably) the best c++ library for linear algebra, because it overloads the normal math operators and then optimizes the order and number of function calls during compile time; so it has absolutely no overhead )

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

            leamelo Leandro T. C. Melo
            benibela Benito van der Zander
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes