diff options
author | Gael Guennebaud <g.gael@free.fr> | 2014-06-25 17:22:12 +0200 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2014-06-25 17:22:12 +0200 |
commit | 3b19b466a7609fd381db2c53569d4d1d1621dbfc (patch) | |
tree | 435e45ccbc3ae614ea1953190417d07e0ad428a0 /Eigen/src/Core/util/StaticAssert.h | |
parent | 199ac3f2e7929011bbd5c9126e4e5e8e6f6b308e (diff) |
Generalize static assertions on matching sizes to avoid the need for SizeAtCompileTime
Diffstat (limited to 'Eigen/src/Core/util/StaticAssert.h')
-rw-r--r-- | Eigen/src/Core/util/StaticAssert.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/util/StaticAssert.h b/Eigen/src/Core/util/StaticAssert.h index f5691826e..eff12486d 100644 --- a/Eigen/src/Core/util/StaticAssert.h +++ b/Eigen/src/Core/util/StaticAssert.h @@ -159,7 +159,7 @@ #define EIGEN_PREDICATE_SAME_MATRIX_SIZE(TYPE0,TYPE1) \ ( \ - (int(TYPE0::SizeAtCompileTime)==0 && int(TYPE1::SizeAtCompileTime)==0) \ + (int(internal::size_of_xpr_at_compile_time<TYPE0>::ret)==0 && int(internal::size_of_xpr_at_compile_time<TYPE1>::ret)==0) \ || (\ (int(TYPE0::RowsAtCompileTime)==Eigen::Dynamic \ || int(TYPE1::RowsAtCompileTime)==Eigen::Dynamic \ |