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

Add definition refactoring bug

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • Qt Creator 2.6.0-rc
    • Qt Creator 2.5.0
    • C/C++/Obj-C++ Support
    • None
    • Windows 7 / Mingw gcc 4.7.0
    • 30b553466797ddf7e3252f1cab2d02d6ea0bee5a

    Description

      using namespace std;
      class B {
      public:
      vector<int> func(int x);| // Here I call refactoring "Add definition"
      };

      This will generates correct code, i.e.,

      vector<int> B::func(int x)
      {
      }
      --------------------------------------
      However, without "using namespace std"

      class B {
      public:
      std::vector<int> func(int x);| // Here I call refactoring "Add definition"
      };

      generated code is not correct,

      vector B::func(int x) // <int> is missing
      {
      }

      Attachments

        Issue Links

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

          Activity

            People

              leamelo Leandro T. C. Melo
              sungmin817 Sungmin Hwang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes