Error C2064: term does not evaluate to a function taking 1 argument
<p>When I try the below program its gives me the :error C2064:  I tried in google but not able to find the exact reason. Please help.</p>

<pre><code>class myClass 
{
    public:
        void function(myClass dTemp)
        {
            cout&lt;&lt;"Inside myClass: taking myClass parameter"&lt;&lt;endl;
        }
};
</code></pre>

<p>.   </p>

<pre><code>int main()
{

    myClass myClassTemp;
    myClass myClassTemp1;

    myClassTemp(myClassTemp1);// error C2064: term does not evaluate to a function taking 1 argument.

return 0;
};
</code></pre>
