The general rule of thumb is prefix operator, unless you actually need a postfix.
Originally Posted by tabstop The general rule of thumb is prefix operator, unless you actually need a postfix. Thanks, that's easier of the 2 in my oppinion anyways [edit] I have overloaded it Code: StatsMgr& StatsMgr::operator++() { ++PlayerLevel; return *this; } What does everyone think? Is it alright?
StatsMgr& StatsMgr::operator++() { ++PlayerLevel; return *this; }
Last edited by legit; 11-25-2008 at 01:04 PM.