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

QContiguousCache: missing move constructor

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • None
    • None

      This container is missing the move constructor, and I have an idea why: the default constructor allocates, so the moved-from state would be different from the default-constructed (= empty) state, which, for a container, at least, isn't really acceptable.

      Acceptance Criteria:

      • Find out whether we can introduce a nothrow default (empty) state before Qt 7
        • If so, implement it, and add the move ctor to establish that state
        • If not before Qt 7, add a note or pre-program for Qt 7, so we don't forget
        • If not at all, implement with a partially-formed moved-from state (some functions already check for d == nullptr, e.g. the dtor, but it doesn't seem to be reachable from normal code so far).

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

            Unassigned Unassigned
            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