Specialization of a function member in a class
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/9330561/if-i-want-to-specialise-just-one-method-in-a-template-how-do-i-do-it">If I want to specialise just one method in a template, how do I do it?</a>  </p>
</blockquote>



<pre><code>template &lt;class T&gt;
class Getter
{
public:
    std::list&lt;T&gt; get()
    {
        std::list&lt;T&gt; l;
        ...
        return l;
    }

    std::list&lt;std::shared_ptr&lt;void&gt;&gt; get()
    {
        std::list&lt;std::shared_ptr&lt;void&gt;&gt; l;
        ...
        return l;
    }
};
</code></pre>

<p>How can I fix this code so as to have a specialization for std::shared_ptr?</p>
