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

QMetaType::fromType<T>().name() is not constexpr anymore

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.1
    • Core: Object Model
    • None

    Description

      QMetaType::fromType<T>().name() used to be constexpr in Qt 6.4, but isn't anymore.

      Trivial test:

      namespace Test {
      enum Enum { A, B };
      Q_ENUM_NS(Enum);
      static_assert(QMetaType::fromType<Enum>().name());
      }

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            hasselmann_via_meiller Mathias Hasselmann
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes