I have some class called GY.
class GY
{
public:
...
private:
...
int data = -1;
}
Let's say that if an object gy of the class GY has data with positive integer an if(gy) operation will return bool. Otherwise false. What is the way to make the operation work implicitly?
Aucun commentaire:
Enregistrer un commentaire