I'm doing you a favor
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.)
Steadily increasing unsigned integer on a long-running piece of infrastructure: bonjour
Laughs in