title: Wrap boost::function into lambda
body: <p>I'm trying to make this code compile:</p>
  
  <pre><code>typedef void (*func_ptr)();
  
  boost::function&lt;void()&gt; bf;
  func_ptr fp = [bf] { bf(); };
  </code></pre>
  
  <p>Visual Studio 2015 complains that no suitable conversion from <code>lambda []void()-&gt;void</code> to <code>void (*const)()</code> exists.</p>
  
  <p>What am I missing?</p>