title: What differences are between capturing by [&captured] and by [&local = captured] in lambdas?
body: <pre><code>vector&lt;int&gt; vec;
  
  //a
  auto foo = [&amp;vec](){
      //do something
  };
  
  //b
  auto foo = [&amp;v = vec](){
      //do something
  };
  </code></pre>
  
  <p>Do I understand it right that only difference between a and b is creation of alias "v" for "vec" in b case or is there more to it?</p>