Memory allocated pointer and a copy pointer in a template
<p>I want to know what is the difference between using the following two pointers in a template:</p>

<p>Lets assume that I allocated a memory as the following:</p>

<pre><code>int* myPtr = new int[10];
int* anotherPtr = myPtr;
</code></pre>

<p>Now, I passed "myPtr" and "anotherPtr" to some functions:</p>

<pre><code>doSomthing(myPtr, status);
doAnotherThing(anotherPtr, status);
</code></pre>

<p>inside the above two functions I am using this parameter to define a template class, such as:</p>

<pre><code>tResource&lt;int&gt;* m_resourcePtr1;
tResource&lt;int&gt;* m_resourcePtr2;
m_resourcePtr1 = new tResource&lt;int&gt; (anotherPtr);
m_resourcePtr2 = new tResource&lt;int&gt; (myPtr);
</code></pre>

<p>Is there is any difference between resourcePtr1 and resourcePtr2?</p>
