次の形式の関数定義があります (大きなコード内):
class Abc{
public:
bool func(const std::string& text,::DE::d type,unsigned a,unsigned& b);
};
ここで、DE は次の形式のクラスです。
class DE
{
public:
enum d{U,L};
};
現在、次の形式で関数を呼び出しています。
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;
関数 func を呼び出すと abc.func(s,DE::U, 0, idj);
、以下のエラーが発生します。誰かがエラーを見つけて修正するのを手伝ってくれるほど親切にできますか.
私が得ているエラーは次のとおりです。
error: no matching function for call to ‘Abc::func(std::string&, DE::U, unsigned int&, int&)’