mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-15 05:05:58 +08:00
Workaround MSVC 2013 compilation issue in Reverse (users are unlikely to be affected)
This commit is contained in:
parent
aa0d407f2e
commit
eb7863ebd0
@ -76,9 +76,23 @@ template<typename MatrixType, int Direction> class Reverse
|
|||||||
EIGEN_DENSE_PUBLIC_INTERFACE(Reverse)
|
EIGEN_DENSE_PUBLIC_INTERFACE(Reverse)
|
||||||
using Base::IsRowMajor;
|
using Base::IsRowMajor;
|
||||||
|
|
||||||
// next line is necessary because otherwise const version of operator()
|
// The following two operators are provided to worarkound
|
||||||
// is hidden by non-const version defined in this file
|
// a MSVC 2013 issue. In theory, we could simply do:
|
||||||
using Base::operator();
|
// using Base::operator();
|
||||||
|
// to make const version of operator() visible.
|
||||||
|
// Otheriwse, they would be hidden by the non-const versions defined in this file
|
||||||
|
|
||||||
|
inline CoeffReturnType operator()(Index row, Index col) const
|
||||||
|
{
|
||||||
|
eigen_assert(row >= 0 && row < rows() && col >= 0 && col < cols());
|
||||||
|
return coeff(row, col);
|
||||||
|
}
|
||||||
|
|
||||||
|
inline CoeffReturnType operator()(Index index) const
|
||||||
|
{
|
||||||
|
eigen_assert(index >= 0 && index < m_matrix.size());
|
||||||
|
return coeff(index);
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
enum {
|
enum {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user