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

Move Definition Outside Class doesn't add template

XMLWordPrintable

    • 34baa3ec472032428cd01b80692bd69126cb324a

      template<class T>
      class Foo { void func() {} }; // Move definition of func outside

      Expected:

      template<class T>
      class Foo { void func(); };
      
      template<class T>
      void Foo<T>::func() {}

      Instead we get:

      template<class T>
      class Foo { void func(); };
      
      void Foo::func() {}

      Both the template itself, and the specialization (Foo<T>) are missing.

        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