instead of using the hand-crafted operator==, use the default-generated one, which is equivalent to the former. regarding the difference between global operator== and member operator==, the default-generated operator in C++20 is now symmetric. so we don't need to worry about the problem of `max_result_size` being lhs or rhs. but neither do we need to worry about the implicit conversion, because all constructors of `max_result_size` are marked explicit. so we don't gain any advantage by making the operator== global instead of a member operator. Signed-off-by: Kefu Chai <kefu.chai@scylladb.com> Closes scylladb/scylladb#17536
21 KiB
21 KiB