Strange behavior of opEquals for structs

harfel dadapapa at gmail.com
Wed Jun 19 18:08:46 UTC 2019


On Wednesday, 19 June 2019 at 17:15:31 UTC, Ali Çehreli wrote:
> On 06/19/2019 08:28 AM, harfel wrote:
>
> You need to define toHash() member function as well:
>
>   https://dlang.org/spec/hash-map.html#using_struct_as_key
>
> Ali

Thanks Ali,

This fixed my problem, of course. Amazing that such a beginner's 
mistake still receives attention by one of the gurus :-)

harfel


More information about the Digitalmars-d-learn mailing list