mirror of
https://github.com/4jcraft/4jcraft.git
synced 2026-04-24 00:13:37 +00:00
16 lines
283 B
C++
16 lines
283 B
C++
#pragma once
|
|
#ifdef _XBOX
|
|
//
|
|
namespace std {
|
|
namespace tr1 {
|
|
|
|
template <class T>
|
|
class hash<std::shared_ptr<T> > {
|
|
public:
|
|
std::size_t operator()(const std::shared_ptr<T>& key) const {
|
|
return (std::size_t)key.get();
|
|
}
|
|
};
|
|
} // namespace tr1
|
|
} // namespace std
|
|
#endif |