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

C++20 removed std::result_of

    XMLWordPrintable

    Details

    • Commits:
      fb6acf08bbd7a68d027282251747620b942bd1d6 (qt/qtbase/5.14) 157be588f7f3b6273b776c9a61ec8eddbd74c0d7 (qt/qtbase/5.12)

      Description

      Description:
      In /std:c+17 mode, this triggers a deprecation warning in recent versions of MSVC. In /std:c+latest mode, now that microsoft/STL#380 has been merged, this will trigger an error in VS 2019 16.6 Preview 2.
      Reproduce steps:
      1. git clone git://code.qt.io/qt/qt5.git D:\QT5\src
      2. cd /d D:\QT5\src
      3. git checkout dev
      4. perl init-repository
      5. set CL=/D_ENABLE_EXTENDED_ALIGNED_STORAGE
      6. configure -developer-build -opensource -release -nomake examples -nomake tests -skip qtwebengine -confirm-license 2>&1
       
      ErrorMessage:
      F:\gitP\qt\qt5\qtbase\include\QtCore\../../src/corelib/kernel/qobjectdefs.h(535): error C2039: 'result_of': is not a member of 'std'

        Attachments

          Issue Links

          For Gerrit Dashboard: QTBUG-82240
          # Subject Branch Project Status CR V

            Activity

              People

              Assignee:
              manordheim Mårten Nordheim
              Reporter:
              quellazhang Quella Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes