aboutsummaryrefslogtreecommitdiffhomepage
path: root/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
diff options
context:
space:
mode:
authorGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-01-30 19:46:30 -0800
committerGravatar Benoit Steiner <benoit.steiner.goog@gmail.com>2015-01-30 19:46:30 -0800
commit590f4b0aa3583c98fe9a0682e26c24ebfaffeaa6 (patch)
tree28f085510c6cd1d23be1deecbc6dc2c851b572c1 /unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
parente896c0ade7c77a18acb1b3ef01f22ef698c1a2a2 (diff)
Silenced some compilation warnings
Diffstat (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h')
-rw-r--r--unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h22
1 files changed, 11 insertions, 11 deletions
diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
index 7ff47673d..c94ed977e 100644
--- a/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
+++ b/unsupported/Eigen/CXX11/src/Tensor/TensorIndexList.h
@@ -124,18 +124,18 @@ 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);
}
template <typename... T>
- static constexpr bool values_up_to_known_statically(const std::tuple<T...>& t) {
+ static constexpr bool values_up_to_known_statically(const std::tuple<T...>&) {
return is_compile_time_constant<typename std::tuple_element<0, std::tuple<T...> >::type>::value;
}
template <typename... T>
- static constexpr bool values_up_to_statically_known_to_increase(const std::tuple<T...>& t) {
+ static constexpr bool values_up_to_statically_known_to_increase(const std::tuple<T...>&) {
return true;
}
};
@@ -271,7 +271,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);
}
};
@@ -279,7 +279,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);
}
};
@@ -294,7 +294,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);
}
};
@@ -302,7 +302,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);
}
};
@@ -318,7 +318,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_gt<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);
}
};
@@ -326,7 +326,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_gt<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);
}
};
@@ -341,7 +341,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_lt<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);
}
};
@@ -349,7 +349,7 @@ template <typename FirstType, typename... OtherTypes>
struct index_statically_lt<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);
}
};