aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
diff options
context:
space:
mode:
authorGravatar Gael Guennebaud <g.gael@free.fr>2015-06-16 14:43:46 +0200
committerGravatar Gael Guennebaud <g.gael@free.fr>2015-06-16 14:43:46 +0200
commit38874b16511f25c5e712d7e294a02b0d9aa6c397 (patch)
tree866242d846c9561eba81d98ffd04b1ac449e5b85 /unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
parente2e66930c67673f34d812e126f0100891af7e0d2 (diff)
Fix shadow warnings in Tensor module
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorRef.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorRef.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
index fba7b20a9..6b25b2ba0 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorRef.h
@@ -197,15 +197,15 @@ template<typename PlainObjectType> class TensorRef : public TensorBase<TensorRef
template<typename... IndexTypes> EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE const Scalar operator()(Index firstIndex, IndexTypes... otherIndices) const
{
- const std::size_t NumIndices = (sizeof...(otherIndices) + 1);
- const array<Index, NumIndices> indices{{firstIndex, otherIndices...}};
+ const std::size_t num_indices = (sizeof...(otherIndices) + 1);
+ const array<Index, num_indices> indices{{firstIndex, otherIndices...}};
return coeff(indices);
}
template<typename... IndexTypes> EIGEN_DEVICE_FUNC
EIGEN_STRONG_INLINE Scalar& coeffRef(Index firstIndex, IndexTypes... otherIndices)
{
- const std::size_t NumIndices = (sizeof...(otherIndices) + 1);
- const array<Index, NumIndices> indices{{firstIndex, otherIndices...}};
+ const std::size_t num_indices = (sizeof...(otherIndices) + 1);
+ const array<Index, num_indices> indices{{firstIndex, otherIndices...}};
return coeffRef(indices);
}
#else