C++ Error in calling the function
<p>I have a function definition of the following form (within a large code):</p>

<pre><code>class Abc{
 public:
 bool func(const std::string&amp; text,::DE::d type,unsigned a,unsigned&amp; b);
 };
</code></pre>

<p>Here DE is a class of the following form:</p>

<pre><code>class DE
{
   public:
   enum d{U,L};

};
</code></pre>

<p>Now I am calling the function in the following form:</p>

<pre><code>string s;
unsigned st=0;
int idj;
cout&lt;&lt;"\n Enter the value of string:";
cin&gt;&gt;s;
Abc abc;
abc.func(s,DE::U, 0,  idj); 
cout&lt;&lt;idj;
</code></pre>

<p>Upon the call of the function func in      <code>abc.func(s,DE::U, 0,  idj);</code> I am getting the below mentioned error. Can someone be kind enough to help find and rectify the error.</p>

<p>The error that I am getting is:</p>

<pre><code>   error: no matching function for call to ‘Abc::func(std::string&amp;, DE::U, unsigned int&amp;, int&amp;)’
</code></pre>
