|
Boost : |
From: Noah Stein (noah_at_[hidden])
Date: 2005-01-09 15:17:27
> -----Original Message-----
> From: boost-bounces_at_[hidden] [mailto:boost-bounces_at_[hidden]]
> On Behalf Of Martin
> Sent: Sunday, January 09, 2005 1:40 PM
> To: boost_at_[hidden]
> Subject: [boost] Re: Any interest in a decimal and money class?
> One thing that would be nice is if basic_decimal were an ABC and all
> decimal
> types were derived from it. That way a function could work on any decimal
> type
> without templates or recompiling. Drawback is that it would introduce a
> virtual call for each operation but since a decimal type is probably slow
> anyway I don't think it matters.
I couldn't disagree more. The IEEE 754r spec is about decimal
floating-point hardware. Any ABC, with its attendant virtual function
calls, is certainly a non-starter. A good starting point to 754r is here:
http://en.wikipedia.org/wiki/IEEE_754r
-- Noah
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk