Fix "type qualifiers are meaningless here" warnings

This commit is contained in:
Gael Guennebaud 2013-02-28 19:29:32 +01:00
parent 0fac91ac22
commit e5bf4440c0
4 changed files with 8 additions and 8 deletions

View File

@ -74,8 +74,8 @@ class Product : public ProductImpl<Lhs,Rhs,typename internal::promote_storage_ty
protected: protected:
const LhsNested m_lhs; LhsNested m_lhs;
const RhsNested m_rhs; RhsNested m_rhs;
}; };
template<typename Lhs, typename Rhs> template<typename Lhs, typename Rhs>

View File

@ -78,8 +78,8 @@ MatrixBase<Derived>::cross3(const MatrixBase<OtherDerived>& other) const
typedef typename internal::nested<Derived,2>::type DerivedNested; typedef typename internal::nested<Derived,2>::type DerivedNested;
typedef typename internal::nested<OtherDerived,2>::type OtherDerivedNested; typedef typename internal::nested<OtherDerived,2>::type OtherDerivedNested;
const DerivedNested lhs(derived()); DerivedNested lhs(derived());
const OtherDerivedNested rhs(other.derived()); OtherDerivedNested rhs(other.derived());
return internal::cross3_impl<Architecture::Target, return internal::cross3_impl<Architecture::Target,
typename internal::remove_all<DerivedNested>::type, typename internal::remove_all<DerivedNested>::type,

View File

@ -61,7 +61,7 @@ public:
protected: protected:
const typename XprType::Nested m_matrix; typename XprType::Nested m_matrix;
Index m_outerStart; Index m_outerStart;
const internal::variable_if_dynamic<Index, OuterSize> m_outerSize; const internal::variable_if_dynamic<Index, OuterSize> m_outerSize;
}; };
@ -391,7 +391,7 @@ public:
friend class InnerIterator; friend class InnerIterator;
friend class ReverseInnerIterator; friend class ReverseInnerIterator;
const typename XprType::Nested m_matrix; typename XprType::Nested m_matrix;
const internal::variable_if_dynamic<Index, XprType::RowsAtCompileTime == 1 ? 0 : Dynamic> m_startRow; const internal::variable_if_dynamic<Index, XprType::RowsAtCompileTime == 1 ? 0 : Dynamic> m_startRow;
const internal::variable_if_dynamic<Index, XprType::ColsAtCompileTime == 1 ? 0 : Dynamic> m_startCol; const internal::variable_if_dynamic<Index, XprType::ColsAtCompileTime == 1 ? 0 : Dynamic> m_startCol;
const internal::variable_if_dynamic<Index, RowsAtCompileTime> m_blockRows; const internal::variable_if_dynamic<Index, RowsAtCompileTime> m_blockRows;

View File

@ -54,8 +54,8 @@ SparseMatrixBase<Derived>::dot(const SparseMatrixBase<OtherDerived>& other) cons
typedef typename internal::remove_all<Nested>::type NestedCleaned; typedef typename internal::remove_all<Nested>::type NestedCleaned;
typedef typename internal::remove_all<OtherNested>::type OtherNestedCleaned; typedef typename internal::remove_all<OtherNested>::type OtherNestedCleaned;
const Nested nthis(derived()); Nested nthis(derived());
const OtherNested nother(other.derived()); OtherNested nother(other.derived());
typename NestedCleaned::InnerIterator i(nthis,0); typename NestedCleaned::InnerIterator i(nthis,0);
typename OtherNestedCleaned::InnerIterator j(nother,0); typename OtherNestedCleaned::InnerIterator j(nother,0);