diff options
Diffstat (limited to 'Eigen/src/Core/DenseBase.h')
-rw-r--r-- | Eigen/src/Core/DenseBase.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Eigen/src/Core/DenseBase.h b/Eigen/src/Core/DenseBase.h index c5da1c6b0..b335754c0 100644 --- a/Eigen/src/Core/DenseBase.h +++ b/Eigen/src/Core/DenseBase.h @@ -290,14 +290,15 @@ template<typename Derived> class DenseBase template<int Size> struct FixedSegmentReturnType { typedef VectorBlock<Derived, Size> Type; }; template<int Size> struct ConstFixedSegmentReturnType { typedef const VectorBlock<const Derived, Size> Type; }; + // Note: The "DenseBase::" prefixes are added to help MSVC9 to match these declarations with the later implementations. SegmentReturnType segment(Index start, Index size); - ConstSegmentReturnType segment(Index start, Index size) const; + typename DenseBase::ConstSegmentReturnType segment(Index start, Index size) const; SegmentReturnType head(Index size); - ConstSegmentReturnType head(Index size) const; + typename DenseBase::ConstSegmentReturnType head(Index size) const; SegmentReturnType tail(Index size); - ConstSegmentReturnType tail(Index size) const; + typename DenseBase::ConstSegmentReturnType tail(Index size) const; template<int Size> typename FixedSegmentReturnType<Size>::Type head(); template<int Size> typename ConstFixedSegmentReturnType<Size>::Type head() const; |