Index: ps/trunk/source/ps/CStr.h =================================================================== --- ps/trunk/source/ps/CStr.h +++ ps/trunk/source/ps/CStr.h @@ -1,4 +1,4 @@ -/* Copyright (C) 2019 Wildfire Games. +/* Copyright (C) 2020 Wildfire Games. * This file is part of 0 A.D. * * 0 A.D. is free software: you can redistribute it and/or modify @@ -339,4 +339,16 @@ const u8* Deserialize(const u8* buffer, const u8* bufferend); }; +namespace std +{ +template <> +struct hash +{ + std::size_t operator()(const CStr& str) const + { + return str.GetHashCode(); + } +}; +} + #endif