diff options
author | Gael Guennebaud <g.gael@free.fr> | 2015-11-23 14:07:52 +0100 |
---|---|---|
committer | Gael Guennebaud <g.gael@free.fr> | 2015-11-23 14:07:52 +0100 |
commit | f3dca16a1d4226982281dafa7a2f51c36698f6e5 (patch) | |
tree | 73a2d8e0c3052c919cdc68a440a6286817ab13e3 /Eigen/src/SparseCore/SparseCwiseBinaryOp.h | |
parent | 31b661e4cad656611c322e7b61ad7b5e83c62207 (diff) |
bug #1117: workaround unused-local-typedefs warning when EIGEN_NO_STATIC_ASSERT and NDEBUG are both defined.
Diffstat (limited to 'Eigen/src/SparseCore/SparseCwiseBinaryOp.h')
-rw-r--r-- | Eigen/src/SparseCore/SparseCwiseBinaryOp.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Eigen/src/SparseCore/SparseCwiseBinaryOp.h b/Eigen/src/SparseCore/SparseCwiseBinaryOp.h index 90f702ee3..d9420ac63 100644 --- a/Eigen/src/SparseCore/SparseCwiseBinaryOp.h +++ b/Eigen/src/SparseCore/SparseCwiseBinaryOp.h @@ -39,10 +39,9 @@ class CwiseBinaryOpImpl<BinaryOp, Lhs, Rhs, Sparse> EIGEN_SPARSE_PUBLIC_INTERFACE(Derived) CwiseBinaryOpImpl() { - typedef typename internal::traits<Lhs>::StorageKind LhsStorageKind; - typedef typename internal::traits<Rhs>::StorageKind RhsStorageKind; EIGEN_STATIC_ASSERT(( - (!internal::is_same<LhsStorageKind,RhsStorageKind>::value) + (!internal::is_same<typename internal::traits<Lhs>::StorageKind, + typename internal::traits<Rhs>::StorageKind>::value) || ((Lhs::Flags&RowMajorBit) == (Rhs::Flags&RowMajorBit))), THE_STORAGE_ORDER_OF_BOTH_SIDES_MUST_MATCH); } |