mercredi 1 avril 2015

Return type of function that returns an std::function

I have a function that should return an std::function of the same type as that function. Basically I want something like this:



using RetType = std::function<RetType(void)>;


which obviously will not compile. How do I correctly declare the return type?


Aucun commentaire:

Enregistrer un commentaire