Provide explicit spezializations of hash_value for CTexturePtr and CTextureProperties. Fixes #3036.

This was SVN commit r16271.
This commit is contained in:
leper 2015-02-06 02:03:20 +00:00
parent f0ae351158
commit 846fdc1ed8
2 changed files with 13 additions and 0 deletions

View File

@ -73,6 +73,16 @@ struct TPequal_to
}
};
std::size_t hash_value(const CTexturePtr& v)
{
TPhash h;
return h(v);
}
std::size_t hash_value(const CTextureProperties& v)
{
TPhash h;
return h(v);
}
class CTextureManagerImpl
{

View File

@ -306,4 +306,7 @@ private:
std::weak_ptr<CTexture> m_Self;
};
std::size_t hash_value(const CTexturePtr& v);
std::size_t hash_value(const CTextureProperties& v);
#endif // INCLUDED_TEXTUREMANAGER