How do i compare two chrono timepoints in C++20? This link says that the > and < operators are deprecated in C++20 ?
How do i compare two chrono timepoints in C++20? This link says that the > and < operators are deprecated in C++20 ?
They are deprecated in favour of the comparisons automatically provided by the implementation of operator<=>. You can still compare with < or >, it's just that explicit definitions for these operators is no longer necessary.