Fix NewKernel_d/Eigen compatibility

some bitrot...
This commit is contained in:
Marc Glisse 2021-01-27 12:33:45 +01:00
parent 2ac3a00d2a
commit 766a65e1c0
2 changed files with 13 additions and 5 deletions

View File

@ -91,11 +91,9 @@ namespace CGAL {
}; };
struct Initializer_list { struct Initializer_list {
// Fix T==NT? result_type operator()(std::initializer_list<NT> l) const {
template<class T> return Iterator()(l.size(),l.begin(),l.end());
result_type operator()(std::initializer_list<T> l) const { }
return Iterator()(l.size(),l.begin(),l.end());
}
}; };
struct Values { struct Values {

View File

@ -1594,6 +1594,16 @@ namespace Eigen {
}; };
}; };
template<class A, class B, class C>struct ScalarBinaryOpTraits;
template<bool b, typename BinaryOp>
struct ScalarBinaryOpTraits<CGAL::Interval_nt<b>, double, BinaryOp> {
typedef CGAL::Interval_nt<b> ReturnType;
};
template<bool b, typename BinaryOp>
struct ScalarBinaryOpTraits<double, CGAL::Interval_nt<b>, BinaryOp> {
typedef CGAL::Interval_nt<b> ReturnType;
};
namespace internal { namespace internal {
template<class> struct significant_decimals_impl; template<class> struct significant_decimals_impl;
template<bool b> template<bool b>