mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Workaround "error: floating-point literal cannot appear in a constant-expression" in mpreal.h when compiling with predantic.
(I really don't know how to properly fix this))
This commit is contained in:
@@ -3233,8 +3233,8 @@ namespace std
|
||||
// Please note, exponent range is not fixed in MPFR
|
||||
static const int min_exponent = MPFR_EMIN_DEFAULT;
|
||||
static const int max_exponent = MPFR_EMAX_DEFAULT;
|
||||
static const int min_exponent10 = (int) (MPFR_EMIN_DEFAULT * 0.3010299956639811);
|
||||
static const int max_exponent10 = (int) (MPFR_EMAX_DEFAULT * 0.3010299956639811);
|
||||
EIGEN_PERMISSIVE_EXPR static const int min_exponent10 = (int) (MPFR_EMIN_DEFAULT * 0.3010299956639811);
|
||||
EIGEN_PERMISSIVE_EXPR static const int max_exponent10 = (int) (MPFR_EMAX_DEFAULT * 0.3010299956639811);
|
||||
|
||||
// Should be constant according to standard, but 'digits' depends on precision in MPFR
|
||||
|
||||
|
||||
Reference in New Issue
Block a user