opCmp with template type not working.
Dominikus Dittes Scherkl
dominikus at scherkl.de
Wed Nov 4 09:01:21 UTC 2020
On Tuesday, 3 November 2020 at 03:07:14 UTC, user1234 wrote:
> opCmp should return a signed integer.
No. opCmp should return a float, to have all 4 possible
comparison results available:
equal (0) and
not comparable (NaN)
Especially the last one is necessary if you like to have opCmp
defined on some not completely ordered set.
More information about the Digitalmars-d