diff --git a/lib/filesystem/ResourceID.h b/lib/filesystem/ResourceID.h index d30fb4288..f53e40e69 100644 --- a/lib/filesystem/ResourceID.h +++ b/lib/filesystem/ResourceID.h @@ -142,7 +142,9 @@ public: VCMI_LIB_NAMESPACE_END -template <> struct std::hash +namespace std +{ +template <> struct hash { size_t operator()(const VCMI_LIB_WRAP_NAMESPACE(ResourceID) & resourceIdent) const { @@ -151,3 +153,4 @@ template <> struct std::hash return stringHasher(resourceIdent.getName()) ^ intHasher(static_cast(resourceIdent.getType())); } }; +}