Do not forbid any non-fundamental type conversion:

This is because kernel converters are required before type equality
is established, and so one needs conversion for e.g. PointC3.

That could be added and then non-fundamental types could be forbidden
in parameters of converters, but that's for another time...
This commit is contained in:
Mael Rouxel-Labbé 2021-12-17 12:22:40 +01:00
parent ea42eaea5d
commit 3a0a4a6067
3 changed files with 0 additions and 27 deletions

View File

@ -134,15 +134,6 @@ public:
return t;
}
template <typename T>
T
operator()(const T t,
typename std::enable_if<!std::is_fundamental<T>::value>::type* = nullptr) const
{
CGAL_static_assertion(!(std::is_same<T, T>::value));
return t;
}
// drop the boost::detail::variant::void_ generated by the macros
// from the sequence, transform with the type mapper and throw the
// new list into a variant

View File

@ -94,15 +94,6 @@ public:
return t;
}
template <typename T>
T
operator()(const T t,
typename std::enable_if<!std::is_fundamental<T>::value>::type* = nullptr) const
{
CGAL_static_assertion(!(std::is_same<T, T>::value));
return t;
}
typename K2::Point_2
operator()(const typename K1::Point_2 &a) const
{

View File

@ -107,15 +107,6 @@ public:
return t;
}
template <typename T>
T
operator()(const T t,
typename std::enable_if<!std::is_fundamental<T>::value>::type* = nullptr) const
{
CGAL_static_assertion(!(std::is_same<T, T>::value));
return t;
}
std::vector<Object>
operator()(const std::vector<Object>& v) const
{