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

Refactor AddDefinition ignores template arguments

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Not Evaluated Not Evaluated
    • None
    • Qt Creator 2.5.1
    • C/C++/Obj-C++ Support
    • None
    • OSX

      Create a class, foo, with a member function taking a templates parameter:

      class Foo {
      void Func(std::pair<int32_t, int32_t> size);
      };

      Right-click on Func and choose Refactor->Add Definition. This will create the implementation in the cpp file but will ignore the template arguments:

      void Foo::Func(std::pair size)
      {
      }

      This should be:

      void Foo::Func(std::pair<int32_t, int32_t> size)
      {
      }

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

            kosjar Nikolai Kosjar
            danny77uk Daniel
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes