c++ template class objects compatible
<p>I have a template class</p>

<pre><code>template&lt;int N&gt;
class xyz{
some code ....
};
</code></pre>

<p>if I do not use N inside the class, then all objects of this class should be compatible irrespective of the template value. But its not.</p>

<p>For example, if I say <code>xyz&lt;20&gt; a</code> and then <code>xyz&lt;30&gt; b(a)</code>, the compiler gives an error.</p>

<p>Why is this so?</p>
