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

qOverload not defined for MSVC compiler

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P5: Not important
    • None
    • 5.9.0
    • Core: Other
    • None
    • Visual Studio 2017

      Visual Studio 2015 Update 3

    Description

      The qOverload (along qConstOverload and qNonConstOverload) is not defined for Visual Studio compiler, even though it supports variable templates (since 2015 Update 3 I believe).

      It seems that qglobal.h defines qOverload only if __cpp_variable_templates feature detection macro is defined. (line 1100 as of Qt 5.9.0) The feature detection macros are not part of C++ standard and MSVC currently does not define them. I believe that there should be added check for MSVC version as well.

      Attachments

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

        Activity

          People

            thiago Thiago Macieira
            mwu Michał Urbańczyk
            Votes:
            8 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes