mirror of https://github.com/CGAL/cgal
Add missing inheritance to Eigen::NumTraits<CGAL::Sqrt_extension<...> >
This commit is contained in:
parent
fc38901c56
commit
2112a3641a
|
|
@ -14,10 +14,15 @@
|
||||||
#ifndef CGAL_SQRT_EXTENSION_EIGEN_NUMTRAITS_H
|
#ifndef CGAL_SQRT_EXTENSION_EIGEN_NUMTRAITS_H
|
||||||
#define CGAL_SQRT_EXTENSION_EIGEN_NUMTRAITS_H
|
#define CGAL_SQRT_EXTENSION_EIGEN_NUMTRAITS_H
|
||||||
|
|
||||||
|
#ifdef CGAL_EIGEN3_ENABLED
|
||||||
|
|
||||||
|
#include <Eigen/src/Core/NumTraits.h>
|
||||||
|
|
||||||
namespace Eigen {
|
namespace Eigen {
|
||||||
template<class> struct NumTraits;
|
template<class> struct NumTraits;
|
||||||
template <class NT,class ROOT, class ACDE_TAG, class FP_TAG>
|
template <class NT,class ROOT, class ACDE_TAG, class FP_TAG>
|
||||||
struct NumTraits<CGAL::Sqrt_extension<NT, ROOT, ACDE_TAG, FP_TAG> >
|
struct NumTraits<CGAL::Sqrt_extension<NT, ROOT, ACDE_TAG, FP_TAG> >
|
||||||
|
: GenericNumTraits<CGAL::Sqrt_extension<NT, ROOT, ACDE_TAG, FP_TAG> >
|
||||||
{
|
{
|
||||||
typedef CGAL::Sqrt_extension<NT, ROOT, ACDE_TAG, FP_TAG> Real;
|
typedef CGAL::Sqrt_extension<NT, ROOT, ACDE_TAG, FP_TAG> Real;
|
||||||
typedef Real NonInteger;
|
typedef Real NonInteger;
|
||||||
|
|
@ -38,4 +43,6 @@ namespace Eigen {
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif // CGAL_EIGEN3_ENABLED
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue