mercredi 18 septembre 2019

How does noexcept in lambda work in vs2012?

while trying to do the compile example from https://docs.microsoft.com/en-us/cpp/cpp/lambda-expressions-in-cpp?view=vs-2019#exception-specification using Visual studio 2012

[]() noexcept { throw 5; }();

expected a '{' introducing a lambda body

Aucun commentaire:

Enregistrer un commentaire