Permalink
Browse files

Fix ambiguity between different binds

  • Loading branch information...
1 parent bffb727 commit c075fb01437f99d9a33f52d3dc32e3abb8437c2c @Leont committed Jun 23, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 examples/game.C
View
@@ -56,7 +56,7 @@ class game {
players.push_back(player(name));
}
player& get_player(const string& name) {
- list<player>::iterator player_itr = find_if(players.begin(), players.end(), bind(&player::get_name, _1) == name);
+ list<player>::iterator player_itr = find_if(players.begin(), players.end(), boost::lambda::bind(&player::get_name, _1) == name);
if (player_itr == players.end())
throw game_exception("No such player");
return *player_itr;

0 comments on commit c075fb0

Please sign in to comment.