From 1d9346cc80bc96d83a8e83007c4cb84c03f02eaa Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Sat, 24 Jun 2017 18:23:30 +0200 Subject: [PATCH] Bug fixes (spotted by Guillaume- thank you ) --- BGL/include/CGAL/boost/graph/io.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/BGL/include/CGAL/boost/graph/io.h b/BGL/include/CGAL/boost/graph/io.h index a0f664fc8ad..b3ef6a6a771 100644 --- a/BGL/include/CGAL/boost/graph/io.h +++ b/BGL/include/CGAL/boost/graph/io.h @@ -46,7 +46,7 @@ bool write_off(std::ostream& os, typedef typename boost::graph_traits::vertices_size_type vertices_size_type; typedef typename boost::graph_traits::faces_size_type faces_size_type; - typename boost::property_map::type vpm = get(CGAL::vertex_point,g); + typename boost::property_map::const_type vpm = get(CGAL::vertex_point,g); vertices_size_type nv = static_cast(std::distance(vertices(g).first, vertices(g).second)); faces_size_type nf = static_cast(std::distance(faces(g).first, faces(g).second)); @@ -143,7 +143,7 @@ bool read_off(std::istream& is, std::istringstream iss(line); std::string off; iss >> off; - CGAL_assertion( off == "OFF"); + CGAL_assertion( off == "OFF" || off == "COFF"); } line = next_non_comment(is); { @@ -165,7 +165,7 @@ bool read_off(std::istream& is, line = next_non_comment(is); std::istringstream iss(line); iss >> nvf; - std::vector face(nvf); + std::vector face(nvf); for(vertices_size_type j = 0; j < nvf; j++){ faces_size_type fvi; iss >> fvi;