-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can Hashmap be used in @nogc code? #60
Comments
I think this was caused by attribute inferrence not working on the various functions in HashMap. The problem is that the |
One can get around @nogc attributes by casting. Making the hash function(s) predicates with defaulting to the built in types might be the way to go? |
Druntime should offer @Stretto Predicates for the hash function are a good idea. It is just not quite so obvious to have as the less comparator in sorted lists. There may be many ways in which one thing is greater than another, but typically only one way it equals another. |
I don't think this is practical right now in D. We need to select the attributes (with/without |
I thought that attribute inference would let HashMap be @nogc when using Mallocator?
The text was updated successfully, but these errors were encountered: