From be691a3644415eead935d7465c4d464b91436a68 Mon Sep 17 00:00:00 2001 From: Efi Fogel Date: Mon, 18 Jan 2016 22:41:22 +0200 Subject: [PATCH] Supported CGAL::Segment_2 --- .../Arr_geometry_traits/IO/Polycurve_2_iostream.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/IO/Polycurve_2_iostream.h b/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/IO/Polycurve_2_iostream.h index a75245bd70a..6155737c0bf 100644 --- a/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/IO/Polycurve_2_iostream.h +++ b/Arrangement_on_surface_2/include/CGAL/Arr_geometry_traits/IO/Polycurve_2_iostream.h @@ -48,6 +48,12 @@ void write_polycurve(OutputStream& os, const Polycurve_2, PointType_2>& xcv) { write_polyline(os, xcv); } +/*! Output operator for a polyline of type CGAL::Segment_2. */ +template +void write_polycurve(OutputStream& os, + const Polycurve_2, PointType_2>& xcv) +{ write_polyline(os, xcv); } + /*! Output operator for a polycurve. */ template void write_polycurve(OutputStream& os, @@ -113,6 +119,12 @@ void read_polycurve(InputStream& is, Polycurve_2, PointType_2>& xcv) { read_polyline(is, xcv); } +/*! Input operator for a polyline of type CGAL::Segment_2. */ +template +void read_polycurve(InputStream& is, + Polycurve_2, PointType_2>& xcv) +{ read_polyline(is, xcv); } + /*! Input operator for a polycurve. */ template void read_polycurve(InputStream& is,