diff options
| author | void_17 <heroerror3@gmail.com> | 2026-03-02 15:11:05 +0700 |
|---|---|---|
| committer | void_17 <heroerror3@gmail.com> | 2026-03-02 15:11:05 +0700 |
| commit | 09e0c04f7b9d2d357715dc908ff0094dcf3e4fcc (patch) | |
| tree | 47d8fb31e41dcfc09375367e873d33728b07f55d /Minecraft.World/TilePos.h | |
| parent | def238ff08dd90a06e0916876601f9a03f22c510 (diff) | |
Further C-style struct definitions fixes
Diffstat (limited to 'Minecraft.World/TilePos.h')
| -rw-r--r-- | Minecraft.World/TilePos.h | 15 |
1 files changed, 8 insertions, 7 deletions
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); } +}; |
