Provide implementation to pure virtual function through multiple inheriting another class
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/3291568/import-a-definition-of-a-function-from-a-base-class-to-implement-abstract-inte">&ldquo;import&rdquo; a definition of a function from a base class to implement abstract interface (multiple inheritance in C++)</a>  </p>
</blockquote>



<p>Suppose I have a base class</p>

<pre><code>struct Base1 { virtual void f() = 0; };
</code></pre>

<p>and another class that provides implementation for function <code>f</code>:</p>

<pre><code>struct Base2 { virtual void f() {} };
</code></pre>

<p>I wanted to use <code>Base2::f</code> to implement <code>Base1::f</code> through multiple inheritance:</p>

<pre><code>struct C : Base1, Base2 {};
</code></pre>

<p>But look like compiler doesn't do what I expected, and <code>C</code> is still abstract.</p>

<p>So what is the best way to provide implementation to a pure virtual through another class?</p>

<p>Thanks.</p>
