diff --git a/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/scale_space_advancing_front.cpp b/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/scale_space_advancing_front.cpp index 393f712e74c..f4476a630c8 100644 --- a/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/scale_space_advancing_front.cpp +++ b/Scale_space_reconstruction_3/examples/Scale_space_reconstruction_3/scale_space_advancing_front.cpp @@ -60,10 +60,10 @@ int main(int argc, char** argv) std::ofstream out ("out.off"); out << "OFF" << std::endl << points.size() << " " << reconstruct.number_of_facets() << " 0" << std::endl; - for (typename Point_set::iterator it = points.begin(); it != points.end(); ++ it) + for (Point_set::iterator it = points.begin(); it != points.end(); ++ it) out << points.point(*it) << std::endl; - for (typename Reconstruction::Facet_iterator it = reconstruct.facets_begin(); + for (Reconstruction::Facet_iterator it = reconstruct.facets_begin(); it != reconstruct.facets_end(); ++ it) out << "3 " << (*it)[0] << " " << (*it)[1] << " " << (*it)[2] << std::endl; diff --git a/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h b/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h index 42e647c6f06..dd8469e7009 100644 --- a/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h +++ b/Scale_space_reconstruction_3/include/CGAL/Scale_space_reconstruction_3/Alpha_shape_mesher.h @@ -233,7 +233,8 @@ public: for (Facet_iterator it = _surface.begin(); it != _surface.end(); ++ it) { Facet t = *it; - *(output ++) = {{ (*it)[0], (*it)[1], (*it)[2] }}; + cpp11::array f = {{ std::size_t((*it)[0]), std::size_t((*it)[1]), std::size_t((*it)[2]) }}; + *(output ++) = f; } // std::copy (_surface.begin(), _surface.end(), output); }