mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-05-03 01:04:23 +08:00
bug #1117: workaround unused-local-typedefs warning when EIGEN_NO_STATIC_ASSERT and NDEBUG are both defined.
This commit is contained in:
parent
31b661e4ca
commit
f3dca16a1d
@ -39,10 +39,9 @@ class CwiseBinaryOpImpl<BinaryOp, Lhs, Rhs, Sparse>
|
|||||||
EIGEN_SPARSE_PUBLIC_INTERFACE(Derived)
|
EIGEN_SPARSE_PUBLIC_INTERFACE(Derived)
|
||||||
CwiseBinaryOpImpl()
|
CwiseBinaryOpImpl()
|
||||||
{
|
{
|
||||||
typedef typename internal::traits<Lhs>::StorageKind LhsStorageKind;
|
|
||||||
typedef typename internal::traits<Rhs>::StorageKind RhsStorageKind;
|
|
||||||
EIGEN_STATIC_ASSERT((
|
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))),
|
|| ((Lhs::Flags&RowMajorBit) == (Rhs::Flags&RowMajorBit))),
|
||||||
THE_STORAGE_ORDER_OF_BOTH_SIDES_MUST_MATCH);
|
THE_STORAGE_ORDER_OF_BOTH_SIDES_MUST_MATCH);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user