How to insert a struct into a set and print the members of the set? : <p>I have to use the struct mov</p>

<pre><code>struct mov {
   string src;
   string dst;
};
</code></pre>

<p>where src is the source and dst is the destination. The purpose of the program is to analyze the pieces on a chessboard and generate all of the possible moves. The possible moves must be represented in a set but it must be a set of moves, so set. I've found some methods saying to implement a comparator but I have no clue if it works because when printing the set (using an iterator) I get errors because of the "&lt;&lt;" when printing I guess its conflicting with the comparator since it uses "&lt;"???</p>
