Per il seguente codice: auto F(int count) -> decltype([](int m) { return 0; })
{
return [](int m) { return 0; };
}
g ++ 4.5 dà gli errori: test1.cpp:1:32: error: expect
Sto cercando di imparare le funzionalità attualmente accettate di C++ 11 e ho problemi con auto e decltype. Come esercizio di apprendimento sto estendendo l'elenco delle classi std con alcune funzioni