copying pointer to member functions from a structure
<p>I have my code organized as following</p>

<pre><code>class MyClass
{
public:
   typedef void (MyClass::Ptr2func)();
}

struct abc
{
    MyClass::Ptr2func ptr;
    bool result;
}

void main()
{
    MyClass myCls;
    abc  var;
    //here is a lot of decision making code and pointer initializations

    //I want to copy the pointer to function in another variable
    MyClass::Ptr2func tempPtr;
    tempPtr=var.ptr;
}
</code></pre>

<p>When I try to copy the <code>var.ptr</code> into <code>tempPtr</code> it gives me a compilation error that the argument list is missing.  Also it gives me compilation error on <code>myCls.*(var.ptr())</code>; Is there a precedence issue? I have tried using parenthesis but nothing works. I hope someone can help me out on this.</p>

<p>Thanks and regards,
Saba Taseer</p>
