Finally, C++ is getting some more complexity:

https://devblogs.microsoft.com/cppblog/simplify-your-code-with-rocket-science-c20s-spaceship-operator/

"the C++20 overload resolution rules were changed to allow the compiler to resolve this situation to the most logical overload."

#cpp #cplusplus #cpplang #spaceship #spaceshipoperator #riir

Simplify Your Code With Rocket Science: C++20's Spaceship Operator - C++ Team Blog

This post is part of a regular series of posts where the C++ product team here at Microsoft and other guests answer questions we have received from customers. The questions can be about anything C++ related: MSVC toolset, the standard language and library, the C++ standards committee, isocpp.org, CppCon, etc. Today’s post is by Cameron […]

C++ Team Blog