Fix MSVC compilation

This commit is contained in:
Gael Guennebaud 2014-12-10 21:55:11 +01:00
parent 7fbc9d8409
commit ff29221951
2 changed files with 3 additions and 3 deletions

View File

@ -464,8 +464,8 @@ template<typename Derived> class DenseBase
template<int RowFactor, int ColFactor> template<int RowFactor, int ColFactor>
inline const Replicate<Derived,RowFactor,ColFactor> replicate() const; inline const Replicate<Derived,RowFactor,ColFactor> replicate() const;
typedef const Replicate<Derived,Dynamic,Dynamic> ReplicateReturnType; typedef Replicate<Derived,Dynamic,Dynamic> ReplicateReturnType;
inline ReplicateReturnType replicate(Index rowFacor,Index colFactor) const; inline const ReplicateReturnType replicate(Index rowFacor,Index colFactor) const;
typedef Reverse<Derived, BothDirections> ReverseReturnType; typedef Reverse<Derived, BothDirections> ReverseReturnType;
typedef const Reverse<const Derived, BothDirections> ConstReverseReturnType; typedef const Reverse<const Derived, BothDirections> ConstReverseReturnType;

View File

@ -150,7 +150,7 @@ DenseBase<Derived>::replicate() const
* \sa VectorwiseOp::replicate(), DenseBase::replicate<int,int>(), class Replicate * \sa VectorwiseOp::replicate(), DenseBase::replicate<int,int>(), class Replicate
*/ */
template<typename Derived> template<typename Derived>
typename DenseBase<Derived>::ReplicateReturnType const typename DenseBase<Derived>::ReplicateReturnType
DenseBase<Derived>::replicate(Index rowFactor,Index colFactor) const DenseBase<Derived>::replicate(Index rowFactor,Index colFactor) const
{ {
return Replicate<Derived,Dynamic,Dynamic>(derived(),rowFactor,colFactor); return Replicate<Derived,Dynamic,Dynamic>(derived(),rowFactor,colFactor);