title: std::unique pointer and custom lambda deleter error
body: <p>I am trying to use a std::unique_pointer and supply a custom lambda deleter with it, but I am getting syntax error:</p>
  
  <pre><code>cannot convert from 'wmain::&lt;lambda_0f8f736f48c52ca6fa24492e7c0c1ec0&gt;' to 'const std::default_delete&lt;_Ty&gt;'
  </code></pre>
  
  <p>with the following simple, minimal code:</p>
  
  <pre><code>#include &lt;memory&gt;
  
  class TestClass
  {
  };
  
  typedef std::unique_ptr&lt;TestClass&gt; TestClassPtr;
  
  
  int _tmain(int argc, _TCHAR* argv[])
  {
      TestClassPtr testPtr(new TestClass(), [](TestClass* w){ delete w;});
  
      return 0;
  }
  </code></pre>
  
  <p>Is this the wrong way to supply a lambda deleter to a smart pointer?</p>