Skip to content

Draft: Fix overloaded functions have similar conversions

Julius Künzel requested to merge work/msvc2022 into master

The Qt6 CI gets switched to MSVC 2022 now and with this the build fails with errors like this:

C:\builds\sysadmin\syndication\src\rdf\modelmaker.cpp(55): error C2666: 'Syndication::RDF::Resource::operator ==': overloaded functions have similar conversions
C:/builds/sysadmin/syndication/src/rdf/resource.h(79): note: could be 'bool Syndication::RDF::Resource::operator ==(const Syndication::RDF::Node &) const'
C:/builds/sysadmin/syndication/src/rdf/resource.h(79): note: or 'bool Syndication::RDF::Resource::operator ==(const Syndication::RDF::Node &) const' [synthesized expression 'y == x']
C:\builds\sysadmin\syndication\src\rdf\modelmaker.cpp(55): note: while trying to match the argument list '(T, T)'
        with
        [
            T=Syndication::RDF::Resource
        ]

Full log at https://invent.kde.org/sysadmin/ci-management/-/jobs/1373146

Please note that I do not really know very well what I am doing here and as the tests fail I think this patch is not clean. So consider this as a first suggestion. Any hints towards a clean solution are appriciated

CC @bcooksley

Merge request reports