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

Use std::variant instead of the union in qobject_p.h

    XMLWordPrintable

Details

    • Task
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • None
    • Core: Object Model
    • None

    Description

      Unions are error-prone and require a lot of boilerplate already written in std::variant. Consider changing the union in QObjectPrivate to an std::variant.

      (Is it used due to ABI restrictions?)

      Attachments

        Issue Links

          Activity

            People

              thiago Thiago Macieira
              mikolaj.boc MikoĊ‚aj Boc
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: