From 71d5bedf7224c4c2a2abb783a7cb5a60121b1ccb Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Wed, 25 Sep 2019 11:25:22 -0700 Subject: Fix compilation warnings and errors with clang in TensorBlockV2 --- .../Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h') diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h b/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h index f33489a33..802cf21d8 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorForwardDeclarations.h @@ -171,10 +171,6 @@ enum TiledEvaluation { template struct IsTileable { -#if !EIGEN_HAS_CXX11 - typedef TiledEvaluation::TiledEvaluation TiledEvaluation; -#endif - // Check that block evaluation is supported and it's a preferred option (at // least one sub-expression has much faster block evaluation, e.g. // broadcasting). @@ -186,11 +182,17 @@ struct IsTileable { TensorEvaluator::BlockAccessV2 && TensorEvaluator::PreferBlockAccess; - +#if EIGEN_HAS_CXX11 static const TiledEvaluation value = BlockAccessV2 ? TiledEvaluation::On : (BlockAccess ? TiledEvaluation::Legacy : TiledEvaluation::Off); +#else + static const TiledEvaluation::TiledEvaluation value = + BlockAccessV2 + ? TiledEvaluation::On + : (BlockAccess ? TiledEvaluation::Legacy : TiledEvaluation::Off); +#endif }; #if EIGEN_HAS_CXX11 -- cgit v1.2.3