Both Default parameters set giving error/
<p>In my ".h" file , I have defined :</p>

<pre><code>    example(CQueue* queue = NULL, double code = 0);
</code></pre>

<p>In 2  different methods of my ".cpp" file, I  have to use :</p>

<pre><code>    example(queue);

    example(code2);
</code></pre>

<p>I get errors in both cases. I didnt want to overload. Is defining it :</p>

<pre><code>    example(CQueue* queue, double code = 0);
</code></pre>

<p>the only way? or can I define it the way it is currently defined?</p>
