diff --git a/unsupported/test/cxx11_tensor_generator.cpp b/unsupported/test/cxx11_tensor_generator.cpp index 8ca52c7a5..dcb928714 100644 --- a/unsupported/test/cxx11_tensor_generator.cpp +++ b/unsupported/test/cxx11_tensor_generator.cpp @@ -58,8 +58,12 @@ static void test_gaussian() { int rows = 32; int cols = 48; - array means = { rows / 2.0f, cols / 2.0f }; - array std_devs = { 3.14f, 2.7f }; + array means; + means[0] = rows / 2.0f; + means[1] = cols / 2.0f; + array std_devs; + std_devs[0] = 3.14f; + std_devs[1] = 2.7f; internal::GaussianGenerator gaussian_gen(means, std_devs); Tensor matrix(rows, cols);