title: C++11 lambda in decltype
body: <p>For the following code:</p>
  
  <pre><code>auto F(int count) -&gt; decltype([](int m) { return 0; }) 
  {                                                               
      return [](int m) { return 0; };                                  
  }
  </code></pre>
  
  <p>g++ 4.5 gives the errors:</p>
  
  <pre><code>test1.cpp:1:32: error: expected primary-expression before 'int'
  test1.cpp:1:32: error: expected ')' before 'int'
  </code></pre>
  
  <p>What is the problem? What is the correct way to return a lambda from a function?</p>