|
Boost : |
Subject: Re: [boost] [Boost-users] [review][constrained_value] Review of ConstrainedValue Library begins today
From: Deane Yang (deane.yang_at_[hidden])
Date: 2008-12-04 09:06:48
raindog_at_[hidden] wrote:
> Another example: 6 represents june. 6 + 3 is then 3 months after june, otherwise september. 6 + 12 is the next june.
>
Isn't this just moduluar arithmetic, so months would be more
appropriately represented by a modular integer class (using 0-11 to
represent Jan - Dec)?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk