mirror of https://github.com/CGAL/cgal
add missing template keyword
This commit is contained in:
parent
c919081e16
commit
33aecff166
|
|
@ -425,15 +425,16 @@ private:
|
|||
|
||||
Vector i_ray(*i_point, query.source());
|
||||
double new_distance = i_ray.squared_length();
|
||||
if(!min_distance.get<0>() || new_distance < min_distance.get<2>()) {
|
||||
min_distance.get<3>() = id;
|
||||
min_distance.get<2>() = new_distance;
|
||||
min_distance.get<0>() = true;
|
||||
if(!min_distance.template get<0>()
|
||||
|| new_distance < min_distance.template get<2>()) {
|
||||
min_distance.template get<3>() = id;
|
||||
min_distance.template get<2>() = new_distance;
|
||||
min_distance.template get<0>() = true;
|
||||
min_id = id;
|
||||
min_i_ray = i_ray;
|
||||
}
|
||||
}
|
||||
if(!min_distance.get<0>()) {
|
||||
if(!min_distance.template get<0>()) {
|
||||
return min_distance;
|
||||
}
|
||||
|
||||
|
|
@ -451,8 +452,8 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
min_distance.get<1>() = true; // founded intersection is acceptable.
|
||||
min_distance.get<2>() = std::sqrt(min_distance.get<2>());
|
||||
min_distance.template get<1>() = true; // founded intersection is acceptable.
|
||||
min_distance.template get<2>() = std::sqrt(min_distance.template get<2>());
|
||||
return min_distance;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue