Boost logo

Boost Users :

Subject: Re: [Boost-users] [review][constrained_value] Review of Constrained Value Library begins today
From: Joe Gottman (jgottman_at_[hidden])
Date: 2008-12-04 07:25:01


Deane Yang wrote:
> Edward Diener wrote:
>> Deane Yang wrote:
>>>
>>> I have an even more extreme view on this. I don't believe any
>>> arithmetic operations should be permitted for constrained numbers.
>>> They just don't make sense (would you ever want to add two different
>>> days of a month?).
>>
>> You have chosen a particular type for which arithmetic operations
>> sometimes make little sense. In many other situations this is not the
>> case.
>
>
> Could you give an example?

    One example: adding 2 to Monday to get Wednesday, or adding 2 to
Saturday to get Monday.

Joe Gottman


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net