Fix C-style struct functor definitions

This commit is contained in:
void_17
2026-03-02 14:51:05 +07:00
parent dea1d62074
commit def238ff08
6 changed files with 102 additions and 84 deletions

View File

@@ -539,13 +539,15 @@ private:
#endif
};
typedef struct
struct PlayerKeyHash
{
int operator() (const shared_ptr<Player> k) const { return Player::hash_fnct (k); }
inline int operator() (const shared_ptr<Player> k) const
{ return Player::hash_fnct (k); }
};
} PlayerKeyHash;
typedef struct
struct PlayerKeyEq
{
bool operator() (const shared_ptr<Player> x, const shared_ptr<Player> y) const { return Player::eq_test (x, y); }
} PlayerKeyEq;
inline bool operator() (const shared_ptr<Player> x, const shared_ptr<Player> y) const
{ return Player::eq_test (x, y); }
};