Boost logo

Boost :

From: Gabriel Dos Reis (gdr_at_[hidden])
Date: 2002-09-07 12:29:00


Herve Bronnimann <hbr_at_[hidden]> writes:

| Note that for intervals, it was a question at some point whether we
| should provide specializations for T==float, double and long double,
| with additional implicit conversions for float->double->long double.
| For those ones, we can guarantee at least that there is no loss of
| precision.

This is what is done in the standard for std::complex<>, and in effect
you end up rewritten the same thing over and over...

| We didn't provide it in the end because the problem remains for
| converting the policies. You may have interval<float> with your own
| rounding policy and it's not clear at all we can convert this rounding
| policy to operate on double, unless we know which policy you are using.

100% agreed.

-- Gaby


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