I'm trying to use std::random_shuffle, and get a compilation error.
My compiler is v140(Visual Studio 2015), and I work on x64, Release mode.
My code:
#include <random>
#include <algorithm>
void foo()
{
std::vector<int> v;
std::random_shuffle(v.begin(), v.end());
}
The errors which I get:
error C2039: 'random_shuffle': is not a member of 'std'
error C3861: 'random_shuffle': identifier not found
- Any idea what could the problem be?
Thanks!