Fix C-style struct functor definitions
This commit is contained in:
1 parent
dea1d62074
commit
def238ff08
6 files changed
+102
-84
No files matched your search
@@ -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); }
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user