|
Boost : |
From: Fisher; Damien Kaine (dfisher_at_[hidden])
Date: 2001-10-12 21:36:12
On Sat, 13 Oct 2001, Fisher; Damien Kaine wrote:
> I also notice you have defined operator++ and operator--. I am not sure
> whether these are appropriate for a fixed point type. The way you have
> implemented it:
>
> boost::decimal<3>(0.1) d; // stores 0.1
> d++;
> // d now holds 0.101
>
> This is a totally subjective matter of course, but I think some people
> might think that d would end up holding 1.1. I think it would be best to
> just get rid of ++ and --.
oops. d actually holds 1.1.
I think my comments still stand, I feel a little queasy when I see ++
applied to non-integral types.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk