title: C++11 Lambda Passing with Capture
body: <p>I'm trying to pass a lambda function with capture [&amp;]. What is the correct declaration for a variable storing a capturing lambda? <strong>[f2 below]</strong></p>
  
  <pre><code>// Non-capturing
  void (*f1)() = [](){   }; // Works
  
  // All by reference
  void (*f2)() = [&amp;](){  }; // Syntax Error
  </code></pre>