Pointer to function won't compile
<pre><code>//mediafactory.h

class MediaFactory{
public:
        typedef Media* (*funPointer)();
    funPointer somePointer;
}

//mediafactory.cpp

Media* MediaFactory::returnMedia(){

}
</code></pre>

<p>when I try to do</p>

<pre><code>somePointer = returnMedia;
</code></pre>

<p>I get this error:</p>

<pre><code>1   IntelliSense: a value of type "Media *(MediaFactory::*)()" cannot be assigned to an entity of type "MediaFactory::funPointer"   c:\Users\...\mediafactory.cpp   37
</code></pre>

<p>However, if i change the function to the code below, it will compile and work</p>

<pre><code>Media* returnMedia(){   //without scope

}
</code></pre>
