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

"Default-constructed value" in documentation is misleading

    XMLWordPrintable

Details

    Description

      The Qt documentation states in several places that it will construct, return, etc. "default-constructed values". The definition of that term links to:

      https://doc.qt.io/qt-6/containers.html#default-constructed-value

      This information is not entirely accurate, as the objects are value initializated, not default initialized. The simplification done here for some users (C++ novices) will mislead C++ experts.

      I'm not entirely sure how to fix this. Talk about "value-constructed values" is plain horrible. Maybe we should find another wording for the definition, and then explain in there that what we do is akin to value initialization.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            peppe Giuseppe D'Angelo
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes