title: Can I deduce the return type of a lambda without actually calling it?
body: <p>It might seem obvious to some, but I was still wondering: is there no way to make the compiler deduce the lambda return type without actually calling it?</p>
  
  <p>Of course you can <code>auto retval = myLambda();</code>, however I want sth like:</p>
  
  <pre><code>T_MY_LAMBDA_RETVAL retval;
  ...
  retval = myLambda();
  </code></pre>
  
  <p>Why would I want that? Simple:</p>
  
  <pre><code>try {
      auto retval = myLambda();
  catch (exception e) {
      ...
  }
  
  // retval is undefined but I wonna have it!!! :)
  </code></pre>