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

"Add definition" for move assignment operator does it wrong.

    XMLWordPrintable

Details

    • 51bc18e6d5f44268c86d3b18559cebedae67722b (qt-creator/qt-creator/4.8)

    Description

      *.hpp:

      class X
      {
          public:
              X& operator=( X&& src);
      }
      

      I choose "Add definition in *.cpp" an get (in *.cpp):

      X&&X::operator=(X&& src)
      {
      
      }
      

      The lack of spacing I can live with, but the return type is incorrect.

      Attachments

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

        Activity

          People

            allan.jensen Allan Sandfeld Jensen
            slither Jakub Zakrzewski
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes