diff options
author | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-08-03 16:42:30 +0200 |
---|---|---|
committer | Giuseppe D'Angelo <giuseppe.dangelo@kdab.com> | 2020-08-04 20:04:54 +0200 |
commit | 31c232d3b7297cbc288815297c75968d5c80ac18 (patch) | |
tree | cf6963a1defd4f9bdedb7b7a2de0e217d00bf2ca /mkspecs/common/msvc-based-version.conf | |
parent | 8003ae79bfd72736b809805afbb7984c3431031e (diff) |
QList: properly declare operator== for MSVC
The operators were declared as friend function templates (so, free
functions in the Qt namespace). Unfortunately, the template argument
of the operators was also defaulted -- causing MSVC trying to
instantiate those functions at all times, causing interesting
recursive template instantiation errors (C2968). It's extremely
likely that we're facing a MSVC bug, but work around it by not
defaulting the template argument. This in turn requires to move
the function definition outside QList's definition, otherwise
an extern template definition (like the ones we have for QList<QPoint>)
would cause a template redefinition error...
Change-Id: If03477ac1fa0a72aa252bb9e08e2a19c2b517b1b
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'mkspecs/common/msvc-based-version.conf')
0 files changed, 0 insertions, 0 deletions