Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2001-02-05 17:01:55


At 08:28 PM 2/5/2001 +0000, Paul Moore wrote:

>I've uploaded a new version of the rational numbers library to the
>boost vault (folder rational, file rational_2001-02-05.zip).

I ran the Win32 regression tests after Jens updated the CVS. Borland,
Metrowerks, Microsoft, and Microsoft/STLport compilers worked on both
rational_test and rational_example.

GCC fails twice, and Intel fails once. See logs below

--Beman

** GCC under cygwin
g++ -o boosttmp.exe -ftemplate-depth-30 -Ic:/boost/site
c:/boost/site/libs/rational/rational_test.cpp
c:/boost/site/libs/rational/rational_test.cpp:21: sstream: No such file or
directory
Fail

** GCC under cygwin
g++ -o boosttmp.exe -ftemplate-depth-30 -Ic:/boost/site
c:/boost/site/libs/rational/rational_example.cpp
In file included from c:/boost/site/libs/rational/rational_example.cpp:21:
c:/boost/site/boost/rational.hpp:470: syntax error before `::'
c:/boost/site/boost/rational.hpp: In method
`boost::detail::resetter::resetter(istream &)':
c:/boost/site/boost/rational.hpp:467: class `boost::detail::resetter' does
not have any field named `f_'
c:/boost/site/boost/rational.hpp: In method
`boost::detail::resetter::~resetter()':
c:/boost/site/boost/rational.hpp:468: `f_' undeclared (first use this
function)
c:/boost/site/boost/rational.hpp:468: (Each undeclared identifier is
reported only once
c:/boost/site/boost/rational.hpp:468: for each function it appears in.)
c:/boost/site/boost/rational.hpp: At top level:
c:/boost/site/boost/rational.hpp:477: type specifier omitted for parameter
c:/boost/site/boost/rational.hpp:477: parse error before `&'
c:/boost/site/boost/rational.hpp:478: `boost::operator >>(...)' must have
an argument of class or enumerated type
c:/boost/site/boost/rational.hpp:478: `boost::operator >>(...)' must take
exactly two arguments
c:/boost/site/boost/rational.hpp: In function `class istream &
boost::operator >>(...)':
c:/boost/site/boost/rational.hpp:481: parse error before `::'
c:/boost/site/boost/rational.hpp:487: parse error before `::'
c:/boost/site/boost/rational.hpp:495: confused by earlier errors, bailing
out
Fail

** Intel C++ 5.0
icl /Feboosttmp.exe /nologo /Qwn5 /Zm400 /MDd /W3 /GR /GX /Zi /Od /GZ
/I"c:/boost/site" /D "WIN32" /D "_DEBUG" /D "_MBCS" /D "_CONSOLE"
c:/boost/site/libs/rational/rational_example.cpp /link user32.lib
rational_example.cpp
icl: NOTE: The evaluation period for this product ends on 16-feb-2001 UTC.
c:/boost/site/libs/rational/rational_example.cpp(66) : error: no suitable
conversion function from "boost::rational<int>" to "int" exists
       assert(abs(minus_half) == half);
       ^

c:/boost/site/boost/rational.hpp(442) : error: class "boost::bad_rational"
has no suitable copy constructor
           throw bad_rational();

                 ^
           detected during:
             instantiation of "void boost::rational<IntType>::normalize()
[with IntType=int]" at line 149
             instantiation of
"boost::rational<IntType>::rational(boost::rational<IntType>::param_type={boost::call_traits<IntType>::param_type},
boost::rational<IntType>::param_type={boost::call_traits<IntType>::param_type})
[with IntType=int]"

compilation aborted for c:/boost/site/libs/rational/rational_example.cpp
(code 2)
Fail


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