Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-04-27 06:54:17


Paul,

>abs() was the big problem for MSVC, too. I don't know if the version there
at the moment could be said to really work in any case. I'll look at your
version and think some more. (The big problem with MSVC was that I could
never work out what MSVC behaviour was buggy - your analysis might help me
understand better...)
<

I've just double checked the standard and you're current version of abs is
incorrect:

 friend rational abs(const rational& r);

declares a non-template friend (see 14.5.3.1 examples).

As to what it should be..... :-)

- John.


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