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

Moving template method to .cpp misses template argument list

    XMLWordPrintable

Details

    • Linux/X11

    Description

      When moving the definition of method of a class template to its .cpp file I get:

       

      template<typename T>
      void Optional::Void()
      {
      
      }
      

       

      But this does not compile. I should get:

       

      template <typename T>
      void Optional<T>::Void()
      {
      
      }
      

       

      Also it would nice if template definition are moved to the .inl file (if one exists) instead of .cpp but I am not sure if this is possible.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            silicomancer Bernhard Lindner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes