P
Paulo da Silva
Hi!
Why doesn't this work? If I change the name of the vector toLower for
ex. to toLowerV it works! (GCC)
Thanks.
Paulo
..h
_______________
// Auxiliary functions
class Aux
{ private:
public:
static string &toLower(string &s);
static void toLower(vector<string> &vs); // Changing the name works!
};
..cpp
___________________
using namespace std;
string &Aux::toLower(string &s)
{ transform(s.begin(),s.end(),s.begin(),::tolower);
return s;
}
void Aux::toLower(vector<string> &vs) // Changing the name works!
{ transform(vs.begin(),vs.end(),vs.begin(),Aux::toLower);
}
Why doesn't this work? If I change the name of the vector toLower for
ex. to toLowerV it works! (GCC)
Thanks.
Paulo
..h
_______________
// Auxiliary functions
class Aux
{ private:
public:
static string &toLower(string &s);
static void toLower(vector<string> &vs); // Changing the name works!
};
..cpp
___________________
using namespace std;
string &Aux::toLower(string &s)
{ transform(s.begin(),s.end(),s.begin(),::tolower);
return s;
}
void Aux::toLower(vector<string> &vs) // Changing the name works!
{ transform(vs.begin(),vs.end(),vs.begin(),Aux::toLower);
}