title: Bind Vs Lambda?
body: <p>I have a question about which style is preferred: std::bind Vs lambda in C++0x. I know that they serve -somehow- different purposes but lets take an example of intersecting functionality.</p>
  
  <p>Using <code>lambda</code>:</p>
  
  <pre><code>uniform_int&lt;&gt; distribution(1, 6);
  mt19937 engine;
  // lambda style
  auto dice = [&amp;]() { return distribution(engine); };
  </code></pre>
  
  <p>Using <code>bind</code>:</p>
  
  <pre><code>uniform_int&lt;&gt; distribution(1, 6);
  mt19937 engine;
  // bind style
  auto dice = bind(distribution, engine);
  </code></pre>
  
  <p>Which one should we prefer? why? assuming more complex situations compared to the mentioned example. i.e. What are the advantages/disadvantages of one over the other?</p>