diff --git a/unsupported/test/cxx11_tensor_reduction.cpp b/unsupported/test/cxx11_tensor_reduction.cpp index f1ac83b1b..c46c4c91d 100644 --- a/unsupported/test/cxx11_tensor_reduction.cpp +++ b/unsupported/test/cxx11_tensor_reduction.cpp @@ -204,7 +204,7 @@ static void test_simple_reductions() { ++count; } } - VERIFY_IS_APPROX(result(i, j), sum / count); + VERIFY_IS_APPROX(result(i, j), sum / Scalar(count)); } }