From 09e0c04f7b9d2d357715dc908ff0094dcf3e4fcc Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 15:11:05 +0700 Subject: Further C-style struct definitions fixes --- Minecraft.World/TilePos.h | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'Minecraft.World/TilePos.h') diff --git a/Minecraft.World/TilePos.h b/Minecraft.World/TilePos.h index d4a3e84e..04804066 100644 --- a/Minecraft.World/TilePos.h +++ b/Minecraft.World/TilePos.h @@ -14,14 +14,15 @@ public: static bool eq_test(const TilePos &x, const TilePos &y); }; -typedef struct +struct TilePosKeyHash { - int operator() (const TilePos &k) const { return TilePos::hash_fnct (k); } - -} TilePosKeyHash; + inline int operator()(const TilePos &k) const + { return TilePos::hash_fnct (k); } +}; -typedef struct +struct TilePosKeyEq { - bool operator() (const TilePos &x, const TilePos &y) const { return TilePos::eq_test (x, y); } -} TilePosKeyEq; + inline bool operator()(const TilePos &x, const TilePos &y) const + { return TilePos::eq_test (x, y); } +}; -- cgit v1.2.3