You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BTW, this is the real code I'm trying to make work:
HashEqCompatible*[StorageType] =concept heq, typeHEQ## Declares types where a == b implies hash(a) == hash(b), even with## different types. For example, string and cstring are compatible.mixin isHashEqCompatible
HEQisStorageTypeorisHashEqCompatible(typeStorageType, typeHEQ) orisHashEqCompatible(typeHEQ, typeStorageType)
hash(heq) isHash
(heq ==StorageType) isbool
The goal is that you need to explicitly opt in to being compatible because it isn't guaranteed by the signatures of the functions. Is there a better way to allow explicit opt-in to a Concept by a pair of types?
This shouldn't compile but does with both 0.17.2 and devel:
The text was updated successfully, but these errors were encountered: