dimanche 17 juin 2018

overloading operator() - the definition of this operator

If I want to overload operator() in my class, and I know that it's not change the fields of my the object (from the type of the class) , I can to define this operator as const? like that: bool operator()(int x) const; ?

Aucun commentaire:

Enregistrer un commentaire