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

Move definition outside class ill-formed for template class

XMLWordPrintable

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

      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(){}

       

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes