From b1aa07a8d32e5a9dd52dd8a868654326039167e4 Mon Sep 17 00:00:00 2001 From: Changming Sun Date: Fri, 10 Apr 2020 20:48:54 +0000 Subject: Fix a bug in TensorIndexList.h --- unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'unsupported/Eigen/CXX11/src') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h index 2a3398d67..0e9133c49 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h @@ -279,7 +279,7 @@ struct tuple_coeff<0, ValueT> { } template EIGEN_DEVICE_FUNC static constexpr bool value_known_statically(const Index i, const IndexTuple&) { - return is_compile_time_constant::ValType>::value & (i == 0); + return is_compile_time_constant::ValType>::value && (i == 0); } template -- cgit v1.2.3