Boost logo

Boost :

From: Moore, Paul (paul.moore_at_[hidden])
Date: 2002-02-12 10:18:32


From: "David Abrahams" <david.abrahams_at_[hidden]>
> Somebody posted this to the SourceForge bugs page in January:
>
> http://sourceforge.net/tracker/?func=detail&atid=107586&aid=50
> 4411&group_id=7586
>
> The definition of operator /= for class template
> rational does not handle self divisions (as in r /=
> r;) correctly:

Actually, all of += -= *= and /= operators needed fixing. Thanks for
reminding me of the technique of writing the test first and then fixing
it...

The attached patch fixes the operatos, and adds tests. Can someone apply it
for me?

Thanks,
Paul.

PS I can't get gcc to compile the test suite now (Mingw). Who broke it?




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