From c5f1d0a72a1bcf7bd72db7c5d01078723ffc7554 Mon Sep 17 00:00:00 2001 From: Christoph Hertzberg Date: Tue, 2 Oct 2018 19:01:08 +0200 Subject: Fix shadow warning --- unsupported/test/cxx11_tensor_reduction.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'unsupported/test/cxx11_tensor_reduction.cpp') diff --git a/unsupported/test/cxx11_tensor_reduction.cpp b/unsupported/test/cxx11_tensor_reduction.cpp index 9458f4e4e..c0d4c786f 100644 --- a/unsupported/test/cxx11_tensor_reduction.cpp +++ b/unsupported/test/cxx11_tensor_reduction.cpp @@ -225,11 +225,11 @@ static void test_simple_reductions() { Tensor ints(10); std::iota(ints.data(), ints.data() + ints.dimension(0), 0); - TensorFixedSize > all; - all = ints.all(); - VERIFY(!all()); - all = (ints >= ints.constant(0)).all(); - VERIFY(all()); + TensorFixedSize > all_; + all_ = ints.all(); + VERIFY(!all_()); + all_ = (ints >= ints.constant(0)).all(); + VERIFY(all_()); TensorFixedSize > any; any = (ints > ints.constant(10)).any(); -- cgit v1.2.3