From d138fe341dab4b7c1a7b7d012a3e13e1796aad8f Mon Sep 17 00:00:00 2001 From: Eugene Zhulenev Date: Tue, 11 Sep 2018 17:23:18 -0700 Subject: Fis static_assert in test to conform c++11 standard --- unsupported/test/cxx11_tensor_executor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'unsupported/test/cxx11_tensor_executor.cpp') diff --git a/unsupported/test/cxx11_tensor_executor.cpp b/unsupported/test/cxx11_tensor_executor.cpp index 1dc18220c..8639e7b38 100644 --- a/unsupported/test/cxx11_tensor_executor.cpp +++ b/unsupported/test/cxx11_tensor_executor.cpp @@ -286,7 +286,7 @@ template static void test_execute_reduction(Device d) { - static_assert(NumDims >= 2); + static_assert(NumDims >= 2, "NumDims must be greater or equal than 2"); static constexpr int ReducedDims = NumDims - 2; static constexpr int Options = 0 | Layout; @@ -328,7 +328,7 @@ template static void test_execute_reshape(Device d) { - static_assert(NumDims >= 2); + static_assert(NumDims >= 2, "NumDims must be greater or equal than 2"); static constexpr int ReshapedDims = NumDims - 1; static constexpr int Options = 0 | Layout; @@ -368,7 +368,7 @@ template static void test_execute_slice_rvalue(Device d) { - static_assert(NumDims >= 2); + static_assert(NumDims >= 2, "NumDims must be greater or equal than 2"); static constexpr int Options = 0 | Layout; auto dims = RandomDims(5, 10); @@ -408,7 +408,7 @@ template static void test_execute_slice_lvalue(Device d) { - static_assert(NumDims >= 2); + static_assert(NumDims >= 2, "NumDims must be greater or equal than 2"); static constexpr int Options = 0 | Layout; auto dims = RandomDims(5, 10); -- cgit v1.2.3