Skip to content

Compiling with visual studio 2022 (>17.10) #29

@lulou

Description

@lulou

Hello everyone,
i try to compile quantumgate master with the newest visual studio 17.11.4

QuantumGate-master\QuantumGateLib\Common\Obfuscate.h
Change line 11 from #elif to #else

QuantumGate-master\QuantumGateLib\Common\Random.h
change line 89 from const std::uniform_int_distribution<Int64> dist(min, max); to std::uniform_int_distribution<Int64> dist(min, max);

Now I get to the following error:

Since 17.10 there was a change in the operator deduction.

Severity	Code	Description	Project	File	Line	Suppression State	Details
Error	C7692	'bool QuantumGate::Implementation::Network::Endpoint::operator ==(const QuantumGate::Implementation::Network::Endpoint &) noexcept const': rewritten candidate function was excluded from overload resolution because a corresponding operator!= declared in the same scope	QuantumGateLib	C:\...\QuantumGate-master\QuantumGateLib\Core\UDP\UDPConnection.cpp	996	

I am struggeling to solve this error. For my research it is suggested to remove the overloaded operator != and use !(a == b) instead of a != b.

However this still throws me an error since the != operator is deduced from the MS std lib.

I found several community posts about this like this:
https://developercommunity.visualstudio.com/t/Visual-studio-1710-breaks-existing-code/10668401?sort=active

Thank you

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions