#pragma once #ifndef UnorderedMapiVec2_h__ #define UnorderedMapiVec2_h__ #include #include #include template<> struct std::hash { inline std::size_t operator()(const glm::ivec2 &v) const { return boost::hash()(v.x) ^ boost::hash()(v.y); } inline bool operator()(const glm::ivec2& a, const glm::ivec2& b)const { return a.x == b.x && a.y == b.y; } }; #endif