What is the type of lambda function that returns pointer to a int?
int i; auto func= [&i](int a)->int*{ return &i; };
What is the type of func and why it is not std::function<int*(int)> ?
std::function<int*(int)>
Aucun commentaire:
Enregistrer un commentaire