mercredi 3 août 2016

C++ How do we differentiate postfix and prefix operator-overloaded functions? [duplicate]

How do we explicitly implement a postfix unary operator overloading function?

eg. 'obj++' Vs '++obj' ?

Both are unary operators, right?

Aucun commentaire:

Enregistrer un commentaire