mirror of https://github.com/CGAL/cgal
Use <filesystem>
This commit is contained in:
parent
4305f01384
commit
133934f7b6
|
|
@ -19,6 +19,7 @@
|
||||||
#include <fstream>
|
#include <fstream>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
template <typename PolygonWithHoles>
|
template <typename PolygonWithHoles>
|
||||||
bool read_dat_polygon(const char* filename,
|
bool read_dat_polygon(const char* filename,
|
||||||
|
|
@ -36,7 +37,7 @@ bool read_dat_polygon(const char* filename,
|
||||||
}
|
}
|
||||||
|
|
||||||
bool is_number_of_CC_in_input = false;
|
bool is_number_of_CC_in_input = false;
|
||||||
if(CGAL::IO::internal::get_file_extension(filename) == "poly")
|
if(std::filesystem::path(filename).extension().string() == ".poly")
|
||||||
{
|
{
|
||||||
is_number_of_CC_in_input = true;
|
is_number_of_CC_in_input = true;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue