diff --git a/Triangulation_2/include/CGAL/Triangulation_data_structure_2.h b/Triangulation_2/include/CGAL/Triangulation_data_structure_2.h index 46be609f233..5caf34a3843 100644 --- a/Triangulation_2/include/CGAL/Triangulation_data_structure_2.h +++ b/Triangulation_2/include/CGAL/Triangulation_data_structure_2.h @@ -1832,14 +1832,28 @@ copy_tds(const TDS_src& tds_src, //utilities for copy_tds namespace internal { namespace TDS_2{ template - struct Default_vertex_converter; + struct Default_vertex_converter + { + Vertex_tgt operator()(const Vertex_src& src) const { + return Vertex_src( src.point() ); + } + + void operator()(const Vertex_src&,Vertex_tgt&) const {} + }; + template - struct Default_face_converter; + struct Default_face_converter + { + Face_tgt operator()(const Face_src& src) const { + return Face_tgt(); + } + + void operator()(const Face_src&,Face_tgt&) const {} + }; template struct Default_vertex_converter { - inline const Vertex& operator()(const Vertex& src) const { return src; } diff --git a/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h b/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h index 82fee9ea804..a8ab50dd284 100644 --- a/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h +++ b/Triangulation_3/include/CGAL/Triangulation_data_structure_3.h @@ -3435,14 +3435,28 @@ copy_tds(const TDS_src& tds, //utilities for copy_tds namespace internal { namespace TDS_3{ template - struct Default_vertex_converter; + struct Default_vertex_converter + { + Vertex_tgt operator()(const Vertex_src& src) const { + return Vertex_tgt(src.point()); + } + + void operator()(const Vertex_src&,Vertex_tgt&) const {} + }; + template - struct Default_cell_converter; + struct Default_cell_converter + { + Cell_tgt operator()(const Cell_src&) const { + return Cell_tgt(); + } + + void operator()(const Cell_src&,Cell_tgt&) const {} + }; template struct Default_vertex_converter { - inline const Vertex& operator()(const Vertex& src) const { return src; } @@ -3452,7 +3466,6 @@ namespace internal { namespace TDS_3{ template struct Default_cell_converter{ - inline const Cell& operator()(const Cell& src) const { return src; }