Merge pull request #3703 from sgiraudot/Point_set_processing-Fix_PLY_FT_type_detection-GF

Point Set Processing: Fix PLY FT type detection
This commit is contained in:
Laurent Rineau 2019-02-28 20:48:50 +01:00
commit aacd365080
1 changed files with 10 additions and 1 deletions

View File

@ -92,10 +92,19 @@ namespace CGAL {
};
/// \cond SKIP_IN_MANUAL
// Use a double property for all kernels...
template <typename FT> struct Convert_FT { typedef double type; };
// ...except if kernel uses type float
template <> struct Convert_FT<float> { typedef float type; };
template <typename PointOrVectorMap>
struct GetFTFromMap
{
typedef typename Kernel_traits<typename boost::property_traits<PointOrVectorMap>::value_type>::Kernel::FT type;
typedef typename Convert_FT
<typename Kernel_traits
<typename boost::property_traits
<PointOrVectorMap>::value_type>::Kernel::FT>::type type;
};
/// \endcond