Class function prototype does not match definition - how to fix
<p>This prototype does not match the definition.  How do i fix it?  I threw a const on b.c. I thought that might do it.  But not go</p>

<p>I know it needs the template designator in the definition even though it does not use the template...because this was a previous error.</p>

<pre><code>// Prototype

template &lt;class T&gt; class dynamic_array
  {
  public:
    void print_operator(ostream)const;
  };

// Definition

template &lt;class T&gt; void dynamic_array&lt;T&gt;::print_operator(ostream &amp;os=cout)const
  {
  for (int i = 0; i &lt; size; i++) os &lt;&lt; array[i] &lt;&lt; endl;
  }
</code></pre>
