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

Move definition outside class ill-formed for template class

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.12.2
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None
    • Platform/s:
      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

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

          Activity

            People

            Assignee:
            bubke Marco Bubke
            Reporter:
            moia Maurizio Ingrassia
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes