vendredi 21 octobre 2016

Why lambda removes cv and ref?

Given a lambda:

auto f = [](const T& var){ return var; };

Why return type of f is T (not const T&)? Where is this in the Standard?

Aucun commentaire:

Enregistrer un commentaire