diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-18 12:19:27 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2020-06-19 13:02:21 +0300 |
commit | 0f78a579047ec8946021ca58b8ee48f7486e6605 (patch) | |
tree | c465e8883ef146dcf32df304fbf00ba335819733 /tests/gtests | |
parent | 31ae83381106a7aaee5303710b818c13f42ceddc (diff) |
Make BLI_edgehash_test compatible with C++17
random_shuffle was removed (at least the used version).
Diffstat (limited to 'tests/gtests')
-rw-r--r-- | tests/gtests/blenlib/BLI_edgehash_test.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/gtests/blenlib/BLI_edgehash_test.cc b/tests/gtests/blenlib/BLI_edgehash_test.cc index 982f5b35565..23ad618825b 100644 --- a/tests/gtests/blenlib/BLI_edgehash_test.cc +++ b/tests/gtests/blenlib/BLI_edgehash_test.cc @@ -2,6 +2,7 @@ #include "testing/testing.h" #include <algorithm> +#include <random> #include <vector> extern "C" { @@ -320,7 +321,7 @@ TEST(edgehash, StressTest) } std::vector<Edge> shuffled = edges; - std::random_shuffle(shuffled.begin(), shuffled.end()); + std::shuffle(shuffled.begin(), shuffled.end(), std::default_random_engine()); /* then remove half of them */ int remove_until = shuffled.size() / 2; |