Virtual functions cannot be friends
<p>I wish to create an interface for a class C which has this function:</p>

<pre><code>friend bool operator==(const C&amp; a, const C&amp; b);*
</code></pre>

<p>I wish to the create a mock for C for test driven purposes.</p>

<p>I tried doing it like this:</p>

<pre><code>class IC
{
    virtual friend bool operator==(const IC&amp; a, const IC&amp; b) = 0;
};
</code></pre>

<p>What should I do?</p>
