diff --git a/BGL/examples/BGL_polyhedron_3/copy_polyhedron.cpp b/BGL/examples/BGL_polyhedron_3/copy_polyhedron.cpp index 0318942a8f4..74ef7caf8e9 100644 --- a/BGL/examples/BGL_polyhedron_3/copy_polyhedron.cpp +++ b/BGL/examples/BGL_polyhedron_3/copy_polyhedron.cpp @@ -26,6 +26,7 @@ inline std::size_t hash_value(const FaceHandle& i) { return i.idx(); } #include #include +#include typedef CGAL::Exact_predicates_inexact_constructions_kernel Kernel; typedef Kernel::Point_3 Point; @@ -51,7 +52,7 @@ int main(int argc, char* argv[]) boost::unordered_map v2v; boost::unordered_map h2h; - CGAL::copy_face_graph(S,T1,v2v,h2h); + CGAL::copy_face_graph(S, T1, std::inserter(v2v, v2v.end()), std::inserter(h2h, h2h.end())); std::ofstream out("sm.off"); out << T1; } @@ -68,8 +69,7 @@ int main(int argc, char* argv[]) boost::unordered_map v2v; boost::unordered_map h2h; - CGAL::copy_face_graph(S,T2,v2v,h2h); - + CGAL::copy_face_graph(S, T2, std::inserter(v2v, v2v.end()), std::inserter(h2h, h2h.end())); OpenMesh::IO::write_mesh(T2, "om.off"); } #endif @@ -84,7 +84,7 @@ int main(int argc, char* argv[]) boost::unordered_map v2v; boost::unordered_map h2h; - CGAL::copy_face_graph(T1,S,v2v,h2h); + CGAL::copy_face_graph(T1, S, std::inserter(v2v, v2v.end()), std::inserter(h2h, h2h.end())); std::ofstream out("reverse.off"); out << T1; }