Are you compiling as C++20 ?
yes I am compiling with C++20
the problem is with
it says:
|
call to object of class type 'std::compare_three_way': no matching call operator found
| |
Last edited on
JUANDENT wrote:
it says: call to object of class type 'std::compare_three_way': no matching call operator found |
Operator expects arguments, not comparison, therefore:
return std::compare_three_way{}(val, rhs.val);
Last edited on