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

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

    XMLWordPrintable

Details

    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

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            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:

              Gerrit Reviews

                There are no open Gerrit changes