<div dir="ltr"><div><div><div>I just added /language/platform/kdevhash.h to KDevPlatform. You can see how it's used in the various KDevplatform types' hash() function.<br></div>It's meant to provide a generic hash so you don't have to pull numbers out of a hat for your hash and hope they don't clash, and should behave generally pretty well.<br>
</div>The only only thing to beware of is that adding zero doesn't modify the hash value, so if you have a list of items that contribute to the hash, some of which may contribute a zero for whatever reason, make sure just to add << list.count() to the hash as well, to make sure you don't have some accidental clashes on items that are the same except that one has one more zero-contributing item than the other.<br>
<br></div>-Olivier JG<br></div>