title: C++: Life span of temporary arguments?
body: <p>When creating a new instance of a <code>MyClass</code> as an argument to a function like so:</p>
  <pre><code>class MyClass
  {
    MyClass(int a);
  };    
  
  myFunction(MyClass(42));
  </code></pre>
  <p>Does the standard make any guarantees on the timing of the destructor?</p>
  <p>Specifically, can I assume that it is going to be called before the next statement after the call to <code>myFunction()</code> ?</p>