mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Issue with mpreal and std::numeric_limits, i.e. digits is not a constant. Added a digits() traits in NumTraits with fallback to static constant. Specialization for mpreal added in MPRealSupport.
This commit is contained in:
@@ -90,6 +90,9 @@ int main()
|
||||
#ifdef MPREAL_HAVE_DYNAMIC_STD_NUMERIC_LIMITS
|
||||
static inline int digits10 (long Precision = mpfr::mpreal::get_default_prec()) { return std::numeric_limits<Real>::digits10(Precision); }
|
||||
static inline int digits10 (const Real& x) { return std::numeric_limits<Real>::digits10(x); }
|
||||
|
||||
static inline int digits () { return std::numeric_limits<Real>::digits(); }
|
||||
static inline int digits (const Real& x) { return std::numeric_limits<Real>::digits(x); }
|
||||
#endif
|
||||
|
||||
static inline Real dummy_precision()
|
||||
|
||||
Reference in New Issue
Block a user