diff options
author | 2014-03-13 12:58:57 +0100 | |
---|---|---|
committer | 2014-03-13 12:58:57 +0100 | |
commit | 2db792852ffe8d03b23375da75330c90f490e035 (patch) | |
tree | 6598e076ae5705352806047f2ce365810c8f4e6f | |
parent | 847d801a4c91d3770fa06eb56772b64ed576ce1c (diff) |
Silence stupid parenthesis warnings for old GCC versions (<= 4.6.x)
-rw-r--r-- | Eigen/src/SparseCore/SparseBlock.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Eigen/src/SparseCore/SparseBlock.h b/Eigen/src/SparseCore/SparseBlock.h index 6f615e250..5b95cc33f 100644 --- a/Eigen/src/SparseCore/SparseBlock.h +++ b/Eigen/src/SparseCore/SparseBlock.h @@ -338,7 +338,10 @@ const Block<const Derived,Dynamic,Dynamic,true> SparseMatrixBase<Derived>::inner namespace internal {
template< typename XprType, int BlockRows, int BlockCols, bool InnerPanel,
- bool OuterVector = (BlockCols==1 && XprType::IsRowMajor) || (BlockRows==1 && !XprType::IsRowMajor)>
+ bool OuterVector = (BlockCols==1 && XprType::IsRowMajor)
+ | // FIXME | instead of || to please GCC 4.4.0 stupid warning "suggest parentheses around &&".
+ // revert to || as soon as not needed anymore.
+ (BlockRows==1 && !XprType::IsRowMajor)>
class GenericSparseBlockInnerIteratorImpl;
}
|