Boost logo

Boost :

From: John Maddock (john_at_[hidden])
Date: 2006-12-08 11:46:38

Guillaume Melquiond wrote:
> The implementation is generic; you just have to provide a mathematical
> kernel as a policy (what the documentation calls the "rounding
> policy")
> in order to describe how to perform operations on values of type T
> [2].
> That is, once you said how to divide values of type T, you can divide
> values of type interval<T>.

I hadn't realise that, thanks for the correction!

> [1] For comparison, n2137 does not mandate a specific representation;
> an implementation relying on a midpoint-radius one would still be
> compliant.

Right, that was what I was getting at really: presumably one could write a
specialisation for boost::interval<real_big_type> that used value+radius

Regards, John.

Boost list run by bdawes at, gregod at, cpdaniel at, john at