Boost logo

Boost :

Subject: Re: [boost] [Review] Polynomial library review begins today
From: Ravi (lists_ravi_at_[hidden])
Date: 2009-03-10 11:24:39

On Tuesday 10 March 2009 08:23:07 John Maddock wrote:
> Download of the zip file from the vault is here:

Is this the latest version? It does not compile for me, since polynomial.hpp
uses pow on lines 370 and 372. It needs to include cmath and also needs a
"using std::pow;" statement.

Second, there are compile errors upon trying to multiply two polynomials
together (code attached). I am using boost 1.38.0 with gcc 4.3.2 on Linux
x86_64. The errors I get are of the following form:

linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algo.h: In function ‘_OIter
std::transform(_IIter, _IIter, _OIter, _UnaryOperation) [with _IIter =
__gnu_cxx::__normal_iterator<FieldElem*, std::vector<FieldElem,
std::allocator<FieldElem> > >, _OIter =
std::allocator<std::complex<double> > > >, _UnaryOperation =
std::pointer_to_unary_function<double, FieldElem>]’:
./boost/polynomial.hpp:378: instantiated from
boost::math::tools::polynomial<U>&) [with U = FieldElem, FieldType =
FieldElem]’ instantiated from here
linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_algo.h:4281: error: no
match for call to ‘(std::pointer_to_unary_function<double, FieldElem>)
linux/4.3.2/../../../../include/c++/4.3.2/bits/stl_function.h:424: note:
candidates are: _Result std::pointer_to_unary_function<_Arg,
_Result>::operator()(_Arg) const [with _Arg = double, _Result = FieldElem]


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