diff --git a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h index a795f8eaa..2c5e67f82 100644 --- a/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h +++ b/unsupported/Eigen/CXX11/src/Tensor/TensorExecutor.h @@ -75,7 +75,7 @@ class TensorExecutor // Multicore strategy: the index space is partitioned and each partition is executed on a single core #ifdef EIGEN_USE_THREADS -template +template struct EvalRange { static void run(Evaluator evaluator, const Index first, const Index last) { eigen_assert(last > first); @@ -129,11 +129,11 @@ class TensorExecutor std::vector results; results.reserve(numblocks); for (int i = 0; i < numblocks; ++i) { - results.push_back(device.enqueue(&EvalRange::run, evaluator, i*blocksize, (i+1)*blocksize)); + results.push_back(device.enqueue(&EvalRange::run, evaluator, i*blocksize, (i+1)*blocksize)); } if (numblocks * blocksize < size) { - EvalRange::run(evaluator, numblocks * blocksize, size); + EvalRange::run(evaluator, numblocks * blocksize, size); } for (int i = 0; i < numblocks; ++i) {