From c10dcf7daf6ba7fa8b382043a220430618492a9b Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Mon, 10 Jun 2024 18:18:59 +0200 Subject: [PATCH] allow to call save_binary_file on non-C3t3 type (like a CDT_3) --- SMDS_3/include/CGAL/IO/File_binary_mesh_3.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SMDS_3/include/CGAL/IO/File_binary_mesh_3.h b/SMDS_3/include/CGAL/IO/File_binary_mesh_3.h index e7363047a924..9d3aa0c5d22a 100644 --- a/SMDS_3/include/CGAL/IO/File_binary_mesh_3.h +++ b/SMDS_3/include/CGAL/IO/File_binary_mesh_3.h @@ -46,14 +46,13 @@ save_binary_file(std::ostream& os, , bool binary = true) #endif { - typedef typename C3T3::Triangulation::Geom_traits::FT FT; if(binary) os << "binary "; os << "CGAL c3t3 " << CGAL::Get_io_signature()() << "\n"; if(binary) { CGAL::IO::set_binary_mode(os); } else { CGAL::IO::set_ascii_mode(os); - os.precision(std::numeric_limits::digits10+2); + os.precision(std::numeric_limits::max_digits10); } return !!(os << c3t3); // call operator!() twice, because operator bool() is C++11