Bug 18676 – std.datetime.date.DateTime has opCmp but no toHash

Status
RESOLVED
Resolution
INVALID
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
All
OS
All
Creation time
2018-03-28T13:14:46Z
Last change time
2018-03-29T13:21:38Z
Assigned to
No Owner
Creator
Jack Stouffer
Blocks
17206

Comments

Comment #0 by jack — 2018-03-28T13:14:46Z
Comment #1 by issues.dlang — 2018-03-28T17:16:07Z
DateTime does not define opEquals. It uses the default. If you meant opCmp like you said on the other bug reports referring to std.datetime.date, I ask what I asked there: Why does it matter if opCmp is defined and not toHash? It's if opEquals is defined that toHash is required, not opCmp.
Comment #2 by jack — 2018-03-29T13:21:38Z