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:
> 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

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


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

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