An array of objects as an argument of a function error in c++
<p>I have a templated class Node and I want to create an array of its object and pass it to a function. How do I do that?</p>

<pre><code>Node&lt;char&gt; w1, w2, w3, w4;
Node&lt;char&gt; **s1 = new Node&lt;char&gt;* [3];
s1[0] = &amp;w1; s1[1] = &amp;w2; s1[2] = &amp;w3;
w4.meet_neighbors(s1);
</code></pre>

<p>where I have the following prototype before:</p>

<pre><code>template&lt;typename T&gt;
void Node&lt;T&gt;::meet_neighbors(Node&lt;T&gt;**);
</code></pre>

<p>Probing to do it that way results in the following error:</p>

<pre><code>error: no matching function for call to ‘Node&lt;char&gt;::meet_neighbors(Node&lt;char&gt;**&amp;)
note: candidates are: void Node&lt;TW&gt;::meet_neighbors(const Node&lt;TW&gt;**) [with TW = char] &lt;near match&gt;
</code></pre>

<p>which outcome I do not understand. Please help.</p>
