forked from 0ad/0ad
Provide explicit spezializations of hash_value for CTexturePtr and CTextureProperties. Fixes #3036.
This was SVN commit r16271.
This commit is contained in:
parent
f0ae351158
commit
846fdc1ed8
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user