Reference to pointer and reference overloading
<p>Can i call foo(const T*&amp;) in the following situation?</p>

<pre><code>#include &lt;iostream&gt;

template &lt;typename T&gt;
void foo(const T*&amp;)
{
    std::cout &lt;&lt; "::foo(const T*&amp;) \n";
}

template &lt;typename T&gt;
void foo(const T&amp;)
{
    std::cout &lt;&lt; "::foo(const T&amp;) \n";
}
</code></pre>
