fix ambiguity in function signature

This commit is contained in:
Sébastien Loriot 2021-11-19 13:42:11 +01:00
parent d6ffe7c0f3
commit c47ba58ca0
1 changed files with 6 additions and 2 deletions

View File

@ -26,7 +26,8 @@
#include <CGAL/Polygon_mesh_processing/connected_components.h>
#include <boost/iterator/function_output_iterator.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/range/has_range_iterator.hpp>
#include <vector>
namespace CGAL {
@ -240,7 +241,10 @@ template <typename TriangleMesh,
typename VertexUVMap>
bool is_one_to_one_mapping(const TriangleMesh& mesh,
const Faces_Container& faces,
const VertexUVMap uvmap)
const VertexUVMap uvmap,
typename boost::enable_if<
boost::has_range_iterator<Faces_Container>
>::type* = nullptr)
{
typedef typename boost::graph_traits<TriangleMesh>::vertex_descriptor vertex_descriptor;
typedef typename boost::graph_traits<TriangleMesh>::halfedge_descriptor halfedge_descriptor;