
-----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org] On Behalf Of Martin Sent: Sunday, January 09, 2005 1:40 PM To: boost@lists.boost.org 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