cStringTree *getNode(list<Character*>strings,int nless=0)
{
// Traverse down the tree
cStringTree<Character,Type> *cnode = this;
int l = strings.size();
list<Character*>::iterator it;
template <class Character,class Type>
cStringTree *getNode(list<Character*>strings,int nless=0)
{
// Traverse down the tree
cStringTree<Character,Type> *cnode = this;
int l = strings.size();
list<Character*>::iterator it;
template <class Character,class Type>
Quote:Original post by ShmeeBegek
Thanks, I have another problem now..
*** Source Snippet Removed ***
On the last line there where I declare the iterator I get:
error: expected ';' before "it"
Just out of interest I changed Character to char and it worked perfectly... but there shouldn't be a reason for Character causing compilation errors:
*** Source Snippet Removed ***
Any ideas on this one? Thanks, ~SPH
cStringTree *getNode(list<Character*>strings,int nless=0) { // Traverse down the tree cStringTree<Character,Type> *cnode = this; int l = strings.size(); typename list<Character*>::iterator it;