From 43d9dd9b2844828de3996b762b2f760749df711b Mon Sep 17 00:00:00 2001 From: Benoit Steiner Date: Fri, 17 Aug 2018 08:49:32 -0700 Subject: [PATCH] Removed more dependencies on cxx11. --- unsupported/test/cxx11_tensor_block_access.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/unsupported/test/cxx11_tensor_block_access.cpp b/unsupported/test/cxx11_tensor_block_access.cpp index da093166b..7bf338522 100644 --- a/unsupported/test/cxx11_tensor_block_access.cpp +++ b/unsupported/test/cxx11_tensor_block_access.cpp @@ -11,7 +11,6 @@ #include "main.h" #include -#include #include #include @@ -49,8 +48,8 @@ static DSizes RandomDims() { /** Dummy data type to test TensorBlock copy ops. */ struct Data { - Data() : Data(0) {} - explicit Data(int v) { value = v; } + Data() : value(0) {} + explicit Data(int v) : value(v) { } int value; }; @@ -324,7 +323,7 @@ static void test_block_io_copy_using_reordered_dimensions() { // Create a random dimension re-ordering/shuffle. std::vector shuffle; for (int i = 0; i < NumDims; ++i) shuffle.push_back(i); - std::shuffle(shuffle.begin(), shuffle.end(), std::mt19937()); + std::random_shuffle(shuffle.begin(), shuffle.end()); DSizes output_tensor_dims; array input_to_output_dim_map;