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

Support C++20 language features

XMLWordPrintable

    • Icon: User Story User Story
    • Resolution: Out of scope
    • Icon: P2: Important P2: Important
    • None
    • None
    • C/C++/Obj-C++ Support
    • None

      Qt Creator should be able to correctly parse code that use latest C++20, like the spaceship operator:

      #include <compare>
      struct MyInt {
        int value;
        MyInt(int value): value{value} { }
        auto operator<=>(const MyInt&) const = default;
      };
      

      Currently results in

      error: 'operator<=' cannot be the name of a variable or data member
      

      (TODO: We should be able to find a repo with some testbed for C++ 20 language features)

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

            davschul David Schulz
            kkohne Kai Köhne
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes