We're updating the issue view to help you get more done. 

Complete conditional support for three_way_comparer spaceship operator - once lang features stabalize and I have test compiler

Description

In the Version.h class:

#if __cpp_lib_three_way_comparison >= 201711
public:
constexpr std::strong_ordering operator<=> (const Version& rhs)
#endif
#if __cpp_lib_three_way_comparison < 201711
constexpr bool operator< (const Version& lhs, const Version& rhs);
constexpr bool operator<= (const Version& lhs, const Version& rhs);
constexpr bool operator== (const Version& lhs, const Version& rhs);
constexpr bool operator!= (const Version& lhs, const Version& rhs);
constexpr bool operator>= (const Version& lhs, const Version& rhs);
constexpr bool operator> (const Version& lhs, const Version& rhs);
#endif

Once I have this code right, and testable on a C++20 compiler, then replicate this logic as appropriate for all the other three-way-comparer code in Stroika (even if just conditioanl compile).

Status

Assignee

Lewis Pringle

Reporter

Lewis Pringle

Labels

None

Components

Priority

Medium