I'm trying to pass in vector<LeafNode*> LeafNodeList;
by reference into a class like this:
TreeFromListConstruction tree(&LeafNodeList);
why can't I do it? It says this:
: error C2664: 'TreeFromListConstruction::TreeFromListConstruction(std::vector<_Ty> *)' : cannot convert parameter 1 from 'std::vector<_Ty> *' to 'std::vector<_Ty> *'
//main.cpp
...
vector<LeafNode*> LeafNodeList;
...
for(unsignedint i = 0; i < charByte.size(); i++)//putting the data into a LeafNode and the LeafNode into a list
{
LeafNodeList.push_back(new LeafNode(charByte[i], frequency[i]));
}
TreeFromListConstruction tree(&LeafNodeList);//***GET ERROR HERE***