News for hackers. Stuff that matters.
Re:C++20 Concepts: The Definitive Guide by svalorzen on Sunday August 22, 2021 @01:15PM (#28267392)
Are you sure about this? In my tests floating points are always considered partially ordered, not totally ordered. This page [0] even mentions this in the notes towards the bottom.

[0]: https://en.cppreference.com/w/cpp/utility/compare/partial_or...

Re:C++20 Concepts: The Definitive Guide by tialaramex on Sunday August 22, 2021 @02:10PM (#28267934)
Note that std::totally_ordered is a concept (this topic is about "C++ 20 Concepts: The Definitive Guide") whereas you're talking about std::partial_ordering which is a class, also introduced in C++ 20.

Specifically these ordering classes are the result of the spaceship operator and the concept doesn't care whether you have a spaceship operator.

Re:C++20 Concepts: The Definitive Guide by robocat on Sunday August 22, 2021 @04:26PM (#28269261)
<=> spaceship operator: Good article on the C++20 three-way comparison operator: https://devblogs.microsoft.com/cppblog/simplify-your-code-wi...