title: No match for 'operator==' C++ compile error
body: <p>Another question from a C++ newbie.</p>
  
  <p>I'm receiving a compiler error "No match for 'operator=='" for the following block of code</p>
  
  <pre><code>void swap(Team t1, Player p1, Team t2, Player p2){
      Player new_t1[11];
      Player new_t2[11];
      for(int i=0; i&lt;11; i++){
          new_t1[i] = t1.get_player(i);
          new_t2[i] = t2.get_player(i);
          if(new_t1[i] == p1){
              new_t1[i] = p2;
          }
          if(new_t2[i] == p2){
              new_t2[i] = p1;
          }
      }
  
      cout &lt;&lt; "Players swapped.";
  }
  </code></pre>
  
  <p>Any ideas?</p>