mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Use wrapper macro for multidimensional subscript feature test
See merge request libeigen/eigen!2059
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
63fc0bc8c1
commit
06f5cb4878
@@ -113,7 +113,7 @@ class DenseCoeffsBase<Derived, ReadOnlyAccessors> : public EigenBase<Derived> {
|
||||
return coeff(row, col);
|
||||
}
|
||||
|
||||
#if __cpp_multidimensional_subscript >= 202110L
|
||||
#ifdef EIGEN_MULTIDIMENSIONAL_SUBSCRIPT
|
||||
/** \returns the coefficient at given the given row and column.
|
||||
*
|
||||
* \sa operator[](Index,Index), operator[](Index)
|
||||
@@ -331,7 +331,7 @@ class DenseCoeffsBase<Derived, WriteAccessors> : public DenseCoeffsBase<Derived,
|
||||
return coeffRef(row, col);
|
||||
}
|
||||
|
||||
#if __cpp_multidimensional_subscript >= 202110L
|
||||
#ifdef EIGEN_MULTIDIMENSIONAL_SUBSCRIPT
|
||||
/** \returns a reference to the coefficient at given the given row and column.
|
||||
*
|
||||
* \sa operator[](Index)
|
||||
|
||||
Reference in New Issue
Block a user