diff options
author | Gael Guennebaud <g.gael@free.fr> | 2017-11-10 10:28:54 +0000 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2017-11-10 10:28:54 +0000 |
commit | 1495b98a8e8ce08b1c6ed04fd23db41a68785340 (patch) | |
tree | 856d1d17a111b9e2a83a057405d4d68ec61d843e /unsupported/Eigen/MPRealSupport | |
parent | fc453243801f883a0a7ac3614e43fd9f5c8de2b8 (diff) | |
parent | 511810797e35471568091c44e947329f0060698e (diff) |
Merged in spraetor/eigen (pull request PR-305)
Issue with mpreal and std::numeric_limits::digits
Diffstat (limited to 'unsupported/Eigen/MPRealSupport')
-rw-r--r-- | unsupported/Eigen/MPRealSupport | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/unsupported/Eigen/MPRealSupport b/unsupported/Eigen/MPRealSupport index 7f0b70c63..b770abc4a 100644 --- a/unsupported/Eigen/MPRealSupport +++ b/unsupported/Eigen/MPRealSupport @@ -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() |