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
internally?

Regards, John.


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