Do not call deprecated function

This commit is contained in:
Andreas Fabri 2024-02-07 08:01:38 +00:00
parent 32078f1c23
commit 9ea95037cf
1 changed files with 2 additions and 2 deletions

View File

@ -42,13 +42,13 @@ int main()
{
std::ofstream out("binary.ply", std::ios::binary);
CGAL::set_binary_mode(out);
CGAL::IO::set_binary_mode(out);
out << ps;
out.close();
Point_set ps2;
std::ifstream in("binary.ply", std::ios::binary);
CGAL::set_binary_mode(in);
CGAL::IO::set_binary_mode(in);
in >> ps2;
std::cout << ps2 << std::endl;