I have a function definition of the following form (within a large code):
class Abc{
public:
bool func(const std::string& text,::DE::d type,unsigned a,unsigned& b);
};
Here DE is a class of the following form:
class DE
{
public:
enum d{U,L};
};
Now I am calling the function in the following form:
string s;
unsigned st=0;
int idj;
cout<<"\n Enter the value of string:";
cin>>s;
Abc abc;
abc.func(s,DE::U, 0, idj);
cout<<idj;
Upon the call of the function func in abc.func(s,DE::U, 0, idj);
I am getting the below mentioned error. Can someone be kind enough to help find and rectify the error.
The error that I am getting is:
error: no matching function for call to ‘Abc::func(std::string&, DE::U, unsigned int&, int&)’