Boost logo

Boost :

From: Scott McMurray (me22.ca+boost_at_[hidden])
Date: 2008-05-22 19:59:46


On Thu, May 22, 2008 at 4:56 PM, Joachim Faulhaber
<afojgo_at_[hidden]> wrote:
>
> as suggested by Paul Bristow in his response to my proposal on
> interval containers I started to integrate boost::date_time into my
> library examples.
>
> To my surprise I discovered that boost::date_time does not provide
> operator ++ (--) for it's date and time template classes. So the boost
> date and time classes are not Incrementable (Decrementable). One could
> say: they lack a tic-tac ;-) Which is for *time* kind of a major
> omission.
>

This came up in the units discussions, and had what I thought was a
rather powerful argument against the inclusion of increment and
decrement.

for (some_time_type t = hours(9); t < hours(12+5); ++t) {
   // How many times does this loop?
}


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