Boost logo

Boost :

From: Colin Caughie (c.caughie_at_[hidden])
Date: 2008-05-29 09:47:28


To answer your question with a question: What actual date/time do you think a
default-constructed date_time should be, and by what time interval should ++
increment it?

To me it seems that any answers to these two questions must be completely
arbitrary, in which case I'd question the usefulness of defining them. While I
understand your initial distaste for the idea, a singular value actually seems
like a pretty good way out.

I haven't looked at your interval library (although I probably will, it sounds
interesting), but one idea for using it with date_time might be to wrap
date_time objects in a class of your own, which defines its own "big bang" time
and default increment interval, e.g. 1 second.

Colin


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk