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

QList/QArrayDataPointer is missing std::launder()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P2: Important
    • None
    • 5.15.12, 6.2.6, 6.4.2, 6.5.0 Beta2
    • None
    • 3
    • Foundation Sprint 76

    Description

      See epic for more information.

      C++17 needs the launder() when placing new objects, just in case the value_type contains const or reference members, and we emplace_back() over a previously pop_back()'ed element.

      Only salvation would be if QList so far didn't support such value_types. But then we should add support for them, because they're at least copy-constructible, so in principle work with CoW.

      Attachments

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              mmutz Marc Mutz
              Vladimir Minenko Vladimir Minenko
              Alex Blasche Alex Blasche
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes