The only issue I have with this is the isAssociativeArray constraint. That template uses __traits(isAssociativeArray, T), which returns FALSE for DCollection's HashMap type. It would be a shame if you couldn't define a drop-in replacement to builtin hashes with your own implementation, seeing as such a type wouldn't work with functions in Phobos that take a hash (actually right now very few functions in Phobos do take a hash, if any..).
- KeyType, ValueType traits for hashes Andrej Mitrovic
- Re: KeyType, ValueType traits for hashes bearophile
- Re: KeyType, ValueType traits for hashes Andrej Mitrovic
- Re: KeyType, ValueType traits for hashes Andrej Mitrovic
- Re: KeyType, ValueType traits for hashes Mantis
- Re: KeyType, ValueType traits for hashes bearophile
- Re: KeyType, ValueType traits for hashes Mantis
- Re: KeyType, ValueType traits for h... Andrej Mitrovic
- Re: KeyType, ValueType traits f... Jonathan M Davis
- Re: KeyType, ValueType traits for hashes Dejan Lekic