Merge pull request #3224 from sloriot/BGL-fix_getGT

Fix GetGeomTraits
This commit is contained in:
Laurent Rineau 2018-07-16 11:12:53 +02:00
commit 87715e3342
1 changed files with 8 additions and 1 deletions

View File

@ -152,9 +152,16 @@ namespace CGAL {
{
typedef typename CGAL::graph_has_property<PolygonMesh, boost::vertex_point_t>::type
Has_internal_pmap;
typedef typename boost::lookup_named_param_def <
internal_np::vertex_point_t,
NamedParametersVPM,
boost::param_not_found
> ::type NP_vpm;
struct Fake_GT {};//to be used if there is no internal vertex_point_map in PolygonMesh
typedef typename boost::mpl::if_c< Has_internal_pmap::value
typedef typename boost::mpl::if_c< Has_internal_pmap::value || !boost::is_same<boost::param_not_found, NP_vpm>::value
, typename GetK<PolygonMesh, NamedParametersVPM>::Kernel
, Fake_GT
>::type DefaultKernel;