Fix C-style struct functor definitions

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

No files matched your search

+9 -7
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); }
};