diff --git a/unsupported/test/cxx11_tensor_forced_eval.cpp b/unsupported/test/cxx11_tensor_forced_eval.cpp index ad9de867d..45d7345e9 100644 --- a/unsupported/test/cxx11_tensor_forced_eval.cpp +++ b/unsupported/test/cxx11_tensor_forced_eval.cpp @@ -22,14 +22,15 @@ static void test_simple() m1.setRandom(); m2.setRandom(); - TensorMap> mat1(m1.data(), 3,3); - TensorMap> mat2(m2.data(), 3,3); + TensorMap > mat1(m1.data(), 3,3); + TensorMap > mat2(m2.data(), 3,3); Tensor mat3(3,3); mat3 = mat1; typedef Tensor::DimensionPair DimPair; - Eigen::array dims({{DimPair(1, 0)}}); + Eigen::array dims; + dims[0] = DimPair(1, 0); mat3 = mat3.contract(mat2, dims).eval(); @@ -60,7 +61,7 @@ static void test_const() Eigen::array bcast; bcast[0] = 3; bcast[1] = 1; - const TensorMap> input_tensor(input.data(), 3, 3); + const TensorMap > input_tensor(input.data(), 3, 3); Tensor output_tensor= (input_tensor - input_tensor.maximum(depth_dim).eval().reshape(dims2d).broadcast(bcast)); for (int i = 0; i < 3; ++i) {