diff --git a/Min_sphere_of_spheres_d/include/CGAL/Min_sphere_of_spheres_d.h b/Min_sphere_of_spheres_d/include/CGAL/Min_sphere_of_spheres_d.h index f7f8e896e58..67e6dc54fc0 100644 --- a/Min_sphere_of_spheres_d/include/CGAL/Min_sphere_of_spheres_d.h +++ b/Min_sphere_of_spheres_d/include/CGAL/Min_sphere_of_spheres_d.h @@ -67,7 +67,7 @@ namespace CGAL_MINIBALL_NAMESPACE { typedef const Result *Cartesian_const_iterator; // coordinate iterator class Support_iterator { - typedef typename std::vector::const_iterator It; + typedef typename std::vector::const_iterator It; It it; private: @@ -270,7 +270,7 @@ namespace CGAL_MINIBALL_NAMESPACE { Min_sphere_of_spheres_d::support_begin() { if (!is_up_to_date) update(); - return Support_iterator(*l.begin()); + return Support_iterator(l.begin()); } template @@ -278,7 +278,7 @@ namespace CGAL_MINIBALL_NAMESPACE { Min_sphere_of_spheres_d::support_end() { if (!is_up_to_date) update(); - return Support_iterator(*l.begin()+e); + return Support_iterator(l.begin()+e); } } // namespace CGAL_MINIBALL_NAMESPACE diff --git a/Min_sphere_of_spheres_d/test/Min_sphere_of_spheres_d/interface_check.cpp b/Min_sphere_of_spheres_d/test/Min_sphere_of_spheres_d/interface_check.cpp index fdd5f84d78c..6cbf9ec1074 100644 --- a/Min_sphere_of_spheres_d/test/Min_sphere_of_spheres_d/interface_check.cpp +++ b/Min_sphere_of_spheres_d/test/Min_sphere_of_spheres_d/interface_check.cpp @@ -170,6 +170,12 @@ void test(const int n,const FT& tol) { checkCondition(ms2.is_valid(),"Minsphere not valid."); compare(tol,ms1,ms2,get_is_exact_tag(tol)); + cout << " support points..." << endl; + typename Min_sphere::Support_iterator sbegin = ms2.support_begin(); + typename Min_sphere::Support_iterator send = ms2.support_end(); + for (typename Min_sphere::Support_iterator s = sbegin; s != send; ++s) *s; + cout << endl; + cout << " default constructor and insert()..." << endl; Min_sphere ms3; ms3.insert(S.begin(),S.end());