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

Move definition outside class ill-formed for template class

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • Qt Creator 4.12.2
    • Editors
    • None
    • Linux/X11

    Description

      Using refactor->moving definition outside class create code ill-formed, missing a <T> after the class type.

       

      template <typename T>

      struct Foo{

         void bar() {}

      }

      generate

      template<typename T>
      void Foo::foo(){}

      instead of

      template<typename T>
      void Foo<T>::foo(){}

       

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              moia Maurizio Ingrassia
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes