diff options
author | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-09-20 17:03:42 +0200 |
---|---|---|
committer | Christoph Hertzberg <chtz@informatik.uni-bremen.de> | 2018-09-20 17:03:42 +0200 |
commit | c50250cb241abb3ea90bac86bc1c27dfadd0862c (patch) | |
tree | 63068889374a7a074823406ccd67f8d176db22f7 | |
parent | 2cf6d3050c42d14819160e2642a5c3dfc449e44a (diff) |
Avoid warning "suggest braces around initialization of subobject".
This test is not run in C++03 mode, so no compatibility is lost.
-rw-r--r-- | unsupported/test/cxx11_tensor_shuffling.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/unsupported/test/cxx11_tensor_shuffling.cpp b/unsupported/test/cxx11_tensor_shuffling.cpp index 062dd1c0f..2ec85d2d4 100644 --- a/unsupported/test/cxx11_tensor_shuffling.cpp +++ b/unsupported/test/cxx11_tensor_shuffling.cpp @@ -83,10 +83,10 @@ static void test_expr_shuffling() Tensor<float, 4, DataLayout> result(5, 7, 3, 2); - array<ptrdiff_t, 4> src_slice_dim({2, 3, 1, 7}); - array<ptrdiff_t, 4> src_slice_start({0, 0, 0, 0}); - array<ptrdiff_t, 4> dst_slice_dim({1, 7, 3, 2}); - array<ptrdiff_t, 4> dst_slice_start({0, 0, 0, 0}); + array<ptrdiff_t, 4> src_slice_dim{{2, 3, 1, 7}}; + array<ptrdiff_t, 4> src_slice_start{{0, 0, 0, 0}}; + array<ptrdiff_t, 4> dst_slice_dim{{1, 7, 3, 2}}; + array<ptrdiff_t, 4> dst_slice_start{{0, 0, 0, 0}}; for (int i = 0; i < 5; ++i) { result.slice(dst_slice_start, dst_slice_dim) = |