aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-11-13 19:13:17 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2014-11-13 19:13:17 -0800
commit1d3c8306f87b284c26180be6eac13dc8d4aa1b52 (patch)
treed1f1c525cc2594e17f222cd40ca7f5c1e9c221cc /unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
parentec785b0180f6cf9355b89d85c53fa18acf83e8a6 (diff)
Fixed compilation errors with clang.
H: Enter commit message. Lines beginning with 'HG:' are removed.
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
index 010221e74..eaf0195ce 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
@@ -110,7 +110,7 @@ struct tuple_coeff<0> {
update_value(std::get<0>(t), value);
}
template <typename... T>
- static constexpr bool value_known_statically(const DenseIndex i, const std::tuple<T...>& t) {
+ static constexpr bool value_known_statically(const DenseIndex i, const std::tuple<T...>&) {
// eigen_assert (i == 0); // gcc fails to compile assertions in constexpr
return is_compile_time_constant<typename std::tuple_element<0, std::tuple<T...> >::type>::value & (i == 0);
}
@@ -190,7 +190,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_eq<IndexList<FirstType, OtherTypes...> > {
constexpr bool operator() (const DenseIndex i, const DenseIndex value) const {
return IndexList<FirstType, OtherTypes...>().value_known_statically(i) &
- IndexList<FirstType, OtherTypes...>()[i] == value;
+ (IndexList<FirstType, OtherTypes...>()[i] == value);
}
};
@@ -198,7 +198,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_eq<const IndexList<FirstType, OtherTypes...> > {
constexpr bool operator() (const DenseIndex i, const DenseIndex value) const {
return IndexList<FirstType, OtherTypes...>().value_known_statically(i) &
- IndexList<FirstType, OtherTypes...>()[i] == value;
+ (IndexList<FirstType, OtherTypes...>()[i] == value);
}
};
@@ -213,7 +213,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_ne<IndexList<FirstType, OtherTypes...> > {
constexpr bool operator() (const DenseIndex i, const DenseIndex value) const {
return IndexList<FirstType, OtherTypes...>().value_known_statically(i) &
- IndexList<FirstType, OtherTypes...>()[i] != value;
+ (IndexList<FirstType, OtherTypes...>()[i] != value);
}
};
@@ -221,7 +221,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_ne<const IndexList<FirstType, OtherTypes...> > {
constexpr bool operator() (const DenseIndex i, const DenseIndex value) const {
return IndexList<FirstType, OtherTypes...>().value_known_statically(i) &
- IndexList<FirstType, OtherTypes...>()[i] != value;
+ (IndexList<FirstType, OtherTypes...>()[i] != value);
}
};