Skip to content

Conversation

plasmacel
Copy link

Template specializations of std::hash for glm types as requested in issue #81.
It combines the individual hash values of the scalar elements by a seeding function.
I didn't make full-scale tests, however it seems to work nicely on vector types.

reference:
http://stackoverflow.com/questions/2590677/how-do-i-combine-hash-values-in-c0x

@Groovounet Groovounet added this to the GLM 0.9.7 milestone Mar 15, 2015
@Groovounet Groovounet self-assigned this Mar 15, 2015
Groovounet added a commit that referenced this pull request Mar 15, 2015
Add std::hash support for glm types (with precision support) #320
@Groovounet Groovounet merged commit 61e9b88 into g-truc:master Mar 15, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants