Small formal fixes on the new 3d grid algorithm

This commit is contained in:
Lukas Matena 2019-02-18 12:47:15 +01:00
parent 5966dcb78e
commit dbfcb8b76e
2 changed files with 6 additions and 6 deletions

View file

@ -96,7 +96,7 @@ public:
struct PointGrid3D {
struct GridHash {
std::size_t operator()(const Vec3i &cell_id) {
std::size_t operator()(const Vec3i &cell_id) const {
return std::hash<int>()(cell_id.x()) ^ std::hash<int>()(cell_id.y() * 593) ^ std::hash<int>()(cell_id.z() * 7919);
}
};