mr_ped Messages: 825 Registered: November 2005 Location: Czech Republic - Praha
Experienced Contributor
yes, "++" is not defined for Date class (in either form), use "+=" instead. Or define your own operator somewhere in your code (header? It's short stub which will be very likely inlined anyway), like this:
Date& operator++(Date& a) { return a += 1; }
Date& operator++(Date& a, int) { return a += 1; }
Date& operator--(Date& a) { return a -= 1; }
Date& operator--(Date& a, int) { return a -= 1; }