From 4be7fac4f2abaa99e529b94f7d64edce3fe2d69d Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Mon, 13 Nov 2017 15:30:40 +0100 Subject: [PATCH] Add read and write off taking a std::string as parameter --- BGL/include/CGAL/boost/graph/io.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/BGL/include/CGAL/boost/graph/io.h b/BGL/include/CGAL/boost/graph/io.h index 5e6f12fca40..52f2c046a3e 100644 --- a/BGL/include/CGAL/boost/graph/io.h +++ b/BGL/include/CGAL/boost/graph/io.h @@ -89,6 +89,10 @@ bool write_off(const char* fname, return false; } +template +bool write_off(const std::string& fname, + const FaceGraph& g) +{ return write_off(fname.c_str(), g); } namespace internal { namespace read_off_tools { @@ -198,7 +202,11 @@ bool read_off(const char* fname, return false; } - +template +bool read_off(const std::string& fname, + FaceGraph& g) +{ return read_off(fname.c_str(), g); } + template bool write_inp(std::ostream& os, const FaceGraph& g,