mirror of https://github.com/CGAL/cgal
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:
parent
ea42eaea5d
commit
3a0a4a6067
|
|
@ -134,15 +134,6 @@ public:
|
||||||
return t;
|
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
|
// drop the boost::detail::variant::void_ generated by the macros
|
||||||
// from the sequence, transform with the type mapper and throw the
|
// from the sequence, transform with the type mapper and throw the
|
||||||
// new list into a variant
|
// new list into a variant
|
||||||
|
|
|
||||||
|
|
@ -94,15 +94,6 @@ public:
|
||||||
return t;
|
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
|
typename K2::Point_2
|
||||||
operator()(const typename K1::Point_2 &a) const
|
operator()(const typename K1::Point_2 &a) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -107,15 +107,6 @@ public:
|
||||||
return t;
|
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>
|
std::vector<Object>
|
||||||
operator()(const std::vector<Object>& v) const
|
operator()(const std::vector<Object>& v) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue