Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-108222

QFixed should be a structural type

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 5.15.4, 6.0.1, 6.1.1, 6.2.0 FF
    • GUI: Other
    • None

      I'm classifying this as a bug, because there's no reason it shouldn't be.

      Background:
      C++20 allows class types as non-type template arguments and I found it useful to use a QFixed there, but that fails because QFixed isn't "structural". It needs a defaulted operator==, and members that are public.

      I'm not sure this is fixable in Qt 6, but it should be fixed for Qt 7, at least (but see epic for why we may want to wait).

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

            cnn Qt Core & Network
            mmutz Marc Mutz
            Vladimir Minenko Vladimir Minenko
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes