DGtal-team/DGtal — Issue #290: MPolynomial does not compile (MacOs, default GCC)
Author: dcoeurjo
Created: 2012-03-03 13:23:38+00:00
State: open
Labels: Base, Topology

I

/Users/davidcoeurjolly/Sources/DGtal/tests/math/testMPolynomial.cxx: In function ‘bool testMPolynomial()’:
/Users/davidcoeurjolly/Sources/DGtal/tests/math/testMPolynomial.cxx:163: error: ISO C++ says that these are ambiguous, even though the worst conversion for the first is better than the worst conversion for the second:
/Users/davidcoeurjolly/Sources/DGtal/src/DGtal/math/MPolynomial.h:1250: note: candidate 1: DGtal::MPolynomial<1, double, std::allocator > DGtal::operator*(const double&, const DGtal::MPolynomial<1, double, std::allocator >&)
/Users/davidcoeurjolly/Sources/DGtal/src/DGtal/math/MPolynomial.h:1250: note: candidate 2: DGtal::MPolynomial<1, int, std::allocator > DGtal::operator*(const int&, const DGtal::MPolynomial<1, int, std::allocator >&)