decltype

    26calore

    3risposta

    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

    7calore

    3risposta

    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