title: C++ Function with unlimited optional parameters and different choices of input variables
body: <p>Been thinking about these questions for a while now but couldn't come up with an idea on how to do it.</p>
  
  <p>Lets say I have a function like:</p>
  
  <pre><code>double sum( int param1 , double param2 , [ optional... ] )
  {
       return param1 + param2;
  }
  </code></pre>
  
  <p>Now I want</p>
  
  <p>Q1: optional parameters</p>
  
  <p>Q2: unlimited amount of optional parameters without having to declare them all ofc.</p>
  
  <p>Q3: use of int and double values in those optional parameters</p>
  
  <p>Thanks in advance :)</p>