Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Callbacks and Timers » Date iterator
Re: Date iterator [message #27491 is a reply to message #27482] Wed, 21 July 2010 08:12 Go to previous messageGo to previous message
mr_ped is currently offline  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; }
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: PROPOSAL: delegate like separation of method and args in Callbacks
Next Topic: Time callbacks when ticks overlap
Goto Forum:
  


Current Time: Mon May 20 20:05:18 CEST 2024

Total time taken to generate the page: 0.00809 seconds