bug fix in for loop

This commit is contained in:
Andreas Fabri 2010-08-14 14:30:44 +00:00
parent 117e2a3355
commit eec61ad612
1 changed files with 2 additions and 1 deletions

View File

@ -304,7 +304,8 @@ public:
// Represents *all* points by a set of spheres with 0 radius
std::vector<Traits_sphere> spheres;
spheres.reserve(number_of_vertices());
for (Point_iterator it=points_begin(); Point_iterator eit=points_end();
for (Point_iterator it=points_begin(), eit=points_end();
it != eit; ++it)
spheres.push_back(Traits_sphere(*it,0));