We can't change the arity of the operator. -> is binary operator, but to overload it we need to use it as unary postfix. what is the reason? Why CPP compiler allows to change the arity?
Aucun commentaire:
Enregistrer un commentaire