mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-06-04 18:54:00 +08:00
Silence stupid parenthesis warnings for old GCC versions (<= 4.6.x)
This commit is contained in:
parent
847d801a4c
commit
2db792852f
@ -338,7 +338,10 @@ const Block<const Derived,Dynamic,Dynamic,true> SparseMatrixBase<Derived>::inner
|
|||||||
namespace internal {
|
namespace internal {
|
||||||
|
|
||||||
template< typename XprType, int BlockRows, int BlockCols, bool InnerPanel,
|
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;
|
class GenericSparseBlockInnerIteratorImpl;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user