summaryrefslogtreecommitdiffstats
path: root/src/widgets/doc/snippets/customviewstyle.cpp
diff options
context:
space:
mode:
authorGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-08-03 16:42:30 +0200
committerGiuseppe D'Angelo <giuseppe.dangelo@kdab.com>2020-08-04 20:04:54 +0200
commit31c232d3b7297cbc288815297c75968d5c80ac18 (patch)
treecf6963a1defd4f9bdedb7b7a2de0e217d00bf2ca /src/widgets/doc/snippets/customviewstyle.cpp
parent8003ae79bfd72736b809805afbb7984c3431031e (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 'src/widgets/doc/snippets/customviewstyle.cpp')
0 files changed, 0 insertions, 0 deletions