C++: Compilation Errors for Custom Coded Generic Container?
<p>The following is based on the code that I posted on <a href="http://stackoverflow.com/questions/1812259/c-potential-issues-with-custom-coded-generic-container">this thread</a>. Aside from the obvious bugs, I get the following compilation errors? Any idea why?</p>

<p>The odd thing is that this only occurs for the template class. If I add another non template class to the same .h and .cpp file of the template class and try to instantiate just the non template class, no error is generated.</p>

<p>Scenario A: </p>

<p>I get the compilation error " <b>error C2659: '=' : overloaded function as left operand </b> " for the following code:</p>

<pre><code>StdVector&lt;int&gt; a();
StdVector&lt;int&gt; b();
a = b;
</code></pre>

<p>Scenario B:</p>

<p>I get the compilation error " <b>error C2664: '__thiscall StdVector::StdVector(const class StdVector &amp;)' : cannot convert parameter 1 from 'class StdVector (__cdecl *)(void)' to 'const class StdVector &amp;'</b> " for the following code:</p>

<pre><code>StdVector&lt;int&gt; a();
StdVector&lt;int&gt; b(a);
</code></pre>

<p>Scenario C:</p>

<p>I get the compilation error "<b>error LNK2001: unresolved external symbol "public: __thiscall StdVector::~StdVector(void)" (??1?$StdVector@H@@QAE@XZ)</b> " for the following code:</p>

<pre><code>StdVector&lt;int&gt; a;
</code></pre>
