Boost logo

Boost :

Subject: Re: [boost] [decimal] Proposed portable implementation of std::decimal
From: Josh Quigley (0zeroth_at_[hidden])
Date: 2012-04-19 18:02:22


> >> I believe that a portable implementation of the proposed std::decimal
> >> (eg Decimal Types for C++ would be useful.

> Of course this is definitely something Boost needs in its tool chest.
> But to 'sell' it to Boost, I think it is important to relate to
commercial offerings and
> previous proposals to WG21 C++ Standards.
>
> So say how and why you have done it differently?
>
> Paul

I do not intend to create an implementation - I am simply wiring up the
existing DecNumber, Intel Decimal Float implementations (both IEEE
compliant) to the std::decimal interface. I believe the associated licences
are compatible with boost being able to distribute this, but that would be
the first thing to be checked.

I have no idea how this differs from any other offering (apart from saying
I hope it gives identical results to gcc's standard decimal) apart from
pointing out I haven't found any C++ wrappers for the decimal floats that I
would use 'off the shelf' in the same way I use boost libraries. I'm
working on a somewhat blind assumption that if gcc is implementing this
interface, it is probably the closest thing to what will eventually end up
in the standard.

If there are other implementations that do roughly the same thing, I'd be
really interested to take a look, as I've no desire to reinvent the wheel!


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk