Method taking two default parameters
<p>I have a method with the following definition:</p>

<pre><code>void foo(int i = 0, bool flag = false) {}
</code></pre>

<p>I want to call foo() by passing only the second argument:</p>

<pre><code>foo(true);
</code></pre>

<p>But like this it will always pass it to the first parameter (i).<br>
Is there any other solution I can pass my argument to the second parameter ? Or the only way is to pass the first one also.</p>

<pre><code>foo(0, true);
</code></pre>
