first commit
This commit is contained in:
20
Minecraft.World/HashExtension.h
Normal file
20
Minecraft.World/HashExtension.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#pragma once
|
||||
#ifdef _XBOX
|
||||
//using namespace std;
|
||||
namespace std
|
||||
{
|
||||
namespace tr1
|
||||
{
|
||||
|
||||
template<class T>
|
||||
class hash< shared_ptr<T> >
|
||||
{
|
||||
public:
|
||||
size_t operator()(const shared_ptr<T>& key) const
|
||||
{
|
||||
return (size_t)key.get();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user