using namespace std;//add by fengjiao
template<typename elemType>
class permutation
{
public:
vector< vector<elemType> > getpermutation(vector< vector<elemType>
>& src_collection);
private:
vector< vector<elemType> > permutationaux(vector<elemType>& vec,
vector< vector<elemType> >& tmp_collection);
};
template<typename elemType>
vector< vector<elemType> > permutation<elemType>::getpermutation(vector<
vector<elemType> >& src_collection)
{
vector< vector<elemType> > results_collection;
vector< vector<elemType> >::iterator collection_itor =
src_collection.begin();
when compile it
Permutation.h:22: error: expected `;' before "collection_itor"
Seems the compiler don't know vector< vector<elemType> >::iterator
if change to vector< vector<int> >::iterator, it also fine,
or don't use iterator, also no problem,
What is the problem? maybe the setting or other reason??
THanks