| Thread overview | ||||||
|---|---|---|---|---|---|---|
|
March 28, 2018 [Issue 18679] std.complex.opEquals has opEquals but no toHash | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18679 Jack Stouffer <jack@jackstouffer.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Blocks| |17206 Referenced Issues: https://issues.dlang.org/show_bug.cgi?id=17206 [Issue 17206] [Tracking] Check that opEquals and toHash are both defined or neither are defined -- | ||||
March 07, 2019 [Issue 18679] std.complex.opEquals has opEquals but no toHash | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18679 Vasyl Teliman <vasniktel@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |vasniktel@gmail.com --- Comment #1 from Vasyl Teliman <vasniktel@gmail.com> --- I'm wondering whether `hashOf(this.im, hashOf(this.re))` is sufficient for this task. -- | ||||
April 02, 2019 [Issue 18679] std.complex.opEquals has opEquals but no toHash | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18679 Nathan S. <n8sh.secondary@hotmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |n8sh.secondary@hotmail.com --- Comment #2 from Nathan S. <n8sh.secondary@hotmail.com> --- Vasyl Teliman: it is sufficient, which indicates that we don't actually need a custom `toHash` here and the auto-generated hash for structs is sufficient. -- | ||||
April 25, 2021 [Issue 18679] std.complex.opEquals has opEquals but no toHash | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=18679 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED CC| |ibuclaw@gdcproject.org Resolution|--- |FIXED --- Comment #3 from Iain Buclaw <ibuclaw@gdcproject.org> --- I will close this because you can use `c.hashOf()` instead, as per last comment. -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply