Could not find a match for std::distance<std::_InputIterator, std::_Distance>(CORE::Expr[2], CORE::Expr*)

This commit is contained in:
Shlomo Golubev 2007-09-20 12:18:29 +00:00
parent 950ec69f49
commit 541d31dec9
1 changed files with 2 additions and 1 deletions

View File

@ -578,12 +578,13 @@ public:
{
Algebraic alg_min (x_min), alg_max (x_max);
Algebraic buffer[2];
Algebraic *start_buffer = buffer;
Algebraic *end_buffer =
solve_quadratic_equation ((degree == 2 ? poly.getCoeff(2) : 0),
poly.getCoeff(1),
poly.getCoeff(0),
buffer);
unsigned int num_of_roots = std::distance(buffer, end_buffer);
unsigned int num_of_roots = std::distance(start_buffer, end_buffer);
for (i = 0; i < num_of_roots; ++i)
{