ALL,
It's continuation of this thread.
What I tried is to write following code:
struct Remover : public std::binary_function<CPlayer,void,bool>
{
public:
bool operator()(const CPlayer &player) const
{
return player.IsNewPlayer();
}
};
and call it this way:
players_pool->erase( std::remove_if( players_pool->begin(), players_pool->end(), std::bind2nd( Remover() ) ) );
but it gives me an error:
std::bind2nd(): expects 2 arguments - 1 provided.
How do I properly call this functor?
Thank you.