From faa82f0a6004026c94a6415baf5e138b48dc1629 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Thu, 24 Oct 2024 18:32:55 +0200 Subject: implement weird dijkstra --- XY.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'XY.h') diff --git a/XY.h b/XY.h index 839e19f..8809104 100644 --- a/XY.h +++ b/XY.h @@ -1,5 +1,7 @@ #pragma once +#include + struct XY { int x = 0; int y = 0; @@ -13,3 +15,7 @@ struct XY { bool operator != (const XY& other) const; }; +template<> struct std::hash { + size_t operator () (const XY &) const; +}; + -- cgit v1.2.3