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

Make all objects of static or thread_local storage-duration that can be constinit be Q_CONSTINIT [QtBase]

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • Core: Other
    • None
    • 5
    • Team B Foundation Sprint 55, Foundation Sprint 62, Foundation Sprint 63, Foundation Sprint 64, Foundation Sprint 65, Foundations Sprint 99, Foundation Sprint 100, Foundation Sprint 101, Foundations Sprint 102, Foundation Sprint 103, Foundation Sprint 104, Foundation Sprint 105, Foundation Sprint 106

    Description

      Like constexpr, it ensures that no dynamic initialisation can take place, which means it doesn't interfere (as much) with program startup. Unlike constexpr, constinit objects aren't implicitly const. constinit therefore acts as a static assertion that an object doesn't require dynamic initialisation.

       

      Attachments

        Issue Links

          For Gerrit Dashboard: QTBUG-100486
          # Subject Branch Project Status CR V

          Activity

            People

              isak.fyksen Isak Fyksen
              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: