title: C++ using struct arguments for functions instead of multiple arguments?
body: <p>Anybody think there are advantages to using a class or struct to pass arguments ?</p>
  
  <p>Like instead of</p>
  
  <pre><code>f(int,float,string)
  </code></pre>
  
  <p>Have</p>
  
  <pre><code>f(Args)
  </code></pre>
  
  <p>Where <code>Args</code> is <code>struct</code> with <code>int</code>,<code>float</code>,<code>string</code> members.</p>
  
  <p>Advantage is easy to create multiple default parameters and not have to change function signature when new arguments added.</p>