Added the EIGEN_HAS_CONSTEXPR define

Gate the tensor index list code based on the value of EIGEN_HAS_CONSTEXPR
This commit is contained in:
Benoit Steiner
2015-02-06 02:51:59 -08:00
parent f64045a060
commit dcb2a8b184
5 changed files with 16 additions and 6 deletions

View File

@@ -53,7 +53,7 @@ struct preserve_inner_most_dims {
static const bool value = false;
};
#if __cplusplus > 199711L
#ifdef EIGEN_HAS_CONSTEXPR
template <typename ReducedDims, int NumTensorDims>
struct are_inner_most_dims<ReducedDims, NumTensorDims, ColMajor>{
static const bool value = indices_statically_known_to_increase<ReducedDims>()() &&