jeudi 22 mars 2018

Type of lambda function returning pointer to int

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)> ?

Aucun commentaire:

Enregistrer un commentaire