I'm doing you a favor
If it works, it works.
Steadily increasing unsigned integer on a long-running piece of infrastructure: bonjour
Laughs in
struct LooooongCounter { long highPart; long lowPart; };
LooooongCounter operator++(const LooooongCounter& c) { if(c.lowPart == ULONG_MAX) { c.highPart++; c.lowPart = 0; } else c.lowPart++; }
Post funny things about programming here! (Or just rant about your favourite programming language.)
If it works, it works.
Steadily increasing unsigned integer on a long-running piece of infrastructure: bonjour
Laughs in