title: Default value in C++ depending on other input argument
body: <p>It looks like something like this in the declaration is not possible:</p>
  
  <pre><code>void func(float a, int b=int(a+1)){/*do stuff*/}
  </code></pre>
  
  <p>Basically, I want the default value of <code>b</code> depending on <code>a</code>. Is there a proper workaround for this, besides overloading <code>func</code>?</p>