Details
-
Improvement
-
Resolution: Fixed
-
Major - P3
-
None
-
None
-
None
-
Fully Compatible
-
Service Arch 2023-02-20
Description
This takes the functions out of the enclosing namespace.
This idiomatic pattern reduces risk of ambiguity, and makes all uses of these operators in namespace mongo slightly easier to compile.
Implement the relational operators as operators on std::tie tuples of the data members, so there's less overall work to do in the comparisons, and the body of each one becomes an obvious 1-liner.