From 48f6b274e2d5a59477a368795867baea40e40eed Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Wed, 20 May 2015 08:54:44 -0700 Subject: [PATCH] Fixed compilation error triggered by gcc 4.7 --- unsupported/test/cxx11_tensor_generator.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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);