jeudi 17 août 2017

What does this line mean. (::*) [duplicate]

This question already has an answer here:

While refactoring a piece of code I came across the line below:

class Bar
{
protected:
    int (Bar::* fooFunction)(float); //this line
}

I have never seen this kind of syntax before. What is this syntax and why is it used it used in C++?

Aucun commentaire:

Enregistrer un commentaire