Boost logo

Boost :

From: John Maddock (John_Maddock_at_[hidden])
Date: 2000-06-24 05:37:53


Paul,

><quote>
I've included a workaround for the mingw lack of <limits> in
rational_example.cpp, but mingw still breaks with

    boost\rational.hpp: In function `class boost::rational<int>
    boost::abs<int>(const boost::rational<int> &)':
    rational_example.cpp:65: instantiated from here
    boost\rational.hpp:311: no matching function for call to `abs (int)'
</quote>
<

gcc has a problem with using declarations at function scope: it just
ignores them! Put the using declaration at namespace scope (for gcc only)
and it should work.

- John.


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