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

qtypeinfo.h uses std::is_trivial_v which will be deprecated in C++26

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P3: Somewhat important
    • 6.10.0 Beta3
    • 6.9.0
    • Core: Other
    • None
    • All
    • 97f3d41fa (dev)

    Description

      QTypeInfo contains an enum isComplex (in qtypeinfo.h line 56) which uses std::is_trivial_v which will be deprecated in C++26. The fix is not obvious, depending on your willingness to change the behavior of isComplex.

       

      Further reading:
      https://en.cppreference.com/w/cpp/types/is_trivial

      https://stackoverflow.com/questions/79222674/why-is-stdis-trivial-deprecated-in-c26

       

      Clang 20 warns about this in C+26 mode. It is advised to use C+26 mode, see for example https://www.sandordargo.com/blog/2025/02/05/cpp26-erroneous-behaviour

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            gruenich Christoph Grüninger
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change