From fe12d897f98343a4470fc15b19cee0251921d2ca Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Fri, 8 Jan 2021 13:02:05 +0100 Subject: [PATCH] move function to avoid duplicate --- Mesh_2/include/CGAL/IO/write_vtu.h | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/Mesh_2/include/CGAL/IO/write_vtu.h b/Mesh_2/include/CGAL/IO/write_vtu.h index 89d57ddf88e..fe7a3f85b5b 100644 --- a/Mesh_2/include/CGAL/IO/write_vtu.h +++ b/Mesh_2/include/CGAL/IO/write_vtu.h @@ -19,6 +19,7 @@ #include #include +#include #include #include @@ -32,18 +33,6 @@ namespace CGAL { namespace IO { namespace internal { -template -void -write_vector(std::ostream& os, - const std::vector& vect) -{ - const char* buffer = reinterpret_cast(&(vect[0])); - std::size_t size = vect.size()*sizeof(FT); - - os.write(reinterpret_cast(&size), sizeof(std::size_t)); // number of bytes encoded - os.write(buffer, vect.size()*sizeof(FT)); // encoded data -} - // writes the cells tags before binary data is appended template