std::sample algorithm issue

  • Thread starter Thread starter TDI2011
  • Start date Start date
T

TDI2011

Guest
Installed VS 2017 version 15.8.8

attempting to use the "sample " algorithm and get: E0135 namespace "std" has no member "sample"

include files:

#include "pch.h"
#include <numeric>
#include <iterator>
#include <iostream>
#include <vector>
#include <random>
#include <algorithm>
#include <time.h>

using statement:

using namespace std;


The "sample" algorithm is supposed to be part of c++17. What else do I need to include to get rid of the E0135 error?

Continue reading...
 
Back
Top