Resource manager OBJ vs Model conflict fixed

This commit is contained in:
ViktorLjung
2014-04-27 08:07:18 +02:00
parent c4e127b154
commit cb6b0a58d8
7 changed files with 35 additions and 12 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef Util_UnorderedMapPair_h__
#define Util_UnorderedMapPair_h__
#include <boost/functional/hash.hpp>
namespace std
{
template<typename S, typename T> struct hash<pair<S, T>>
{
inline size_t operator()(const pair<S, T> & v) const
{
size_t seed = 0;
boost::hash_combine(seed, v.first);
boost::hash_combine(seed, v.second);
return seed;
}
};
}
#endif // Util_UnorderedMapPair_h__