Fix linux compiling issue.

Just add .template to the right place.
This commit is contained in:
Martin Šach 2023-09-22 14:41:04 +02:00
parent d9d0ed293e
commit 0a4766e8d3

View File

@ -161,7 +161,7 @@ Circled circle_least_squares_by_solver(const Vec2ds &input, Solver solver)
b(r) = p.squaredNorm(); b(r) = p.squaredNorm();
} }
auto result = solver(A, b); auto result = solver(A, b);
out.center = result.head<2>(); out.center = result.template head<2>();
double r2 = out.center.squaredNorm() - result(2); double r2 = out.center.squaredNorm() - result(2);
if (r2 <= EPSILON) if (r2 <= EPSILON)
out.make_invalid(); out.make_invalid();