I'm trying to make a generic class that receives, as paramater, a vector of generic types. That's is my goal.
This is what i have in header file:
#pragma once
#include <vector>
#include "iostream"
using namespace std;
class Permutation
{
public:
template<class T>
//I already tried that
//template< typename T>
static unsigned int generate(std::vector<T> source, bool recursive = false);
};
}
Until now i receive the same error "Unresolved Externals.
How can i correct implement that?
Note: the implementation of code is in CPP file