Boost logo

Boost :

From: Paul Moore (gustav_at_[hidden])
Date: 2001-02-05 15:28:25


On 1 Feb 2001, at 3:32, rwgk_at_[hidden] wrote:

> The current version of rational.hpp has a problem with a comparison
> like this:
>
> 0 < -1/2
>
> The result is "true."
>
> Here is my idea of a fix:
[...]
> This is, the functions gcd and lcm are modified such that they
> always return a positive number.

I've fixed this in the current version (not yet released - I don't have
CVS access, so development versions are only available on my
hard disk...)

Thanks for the bug report.
Paul.


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