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

create member function bug

    XMLWordPrintable

Details

    • 4e7adc246 (master)

    Description

      there's a small bug in the argument type creation of "create missing member functions". i'm having the following definition to select span from boost or stl:

      namespace ni {
      #if __cpp_lib_span >= 202002L
      using std::span;
      #else
      using boost::span;
      #endif
      }
      

      and implementing a class like:

      namespace ni {
      class foo
      {
        void bar(ni::span<int>);
      };
      }
      

      if i use "create missing member functions", the generated code has the wrong signature for `ni::span` (my cmake configuration is c++20, so `__cpp_lib_span == true`):

      namespace ni {
      foo::bar(ni::boost::span<int>);
      }
      

      Attachments

        For Gerrit Dashboard: QTCREATORBUG-28386
        # Subject Branch Project Status CR V

        Activity

          People

            kandeler Christian Kandeler
            timblechmann tim blechmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes