At 8/25/2010 04:57 PM, you wrote:
> > I have also tried creating a sortPaths() function.
> >
> > // Calling procedure
> > obj.sortPaths();
> >
> > // sortPaths
> > void Entry::sortPaths()
> > {
> >      sort(Entry::compare_Paths);
> > }
> >
> > I get 2 errors:
> > No matching function for call to 'Entry::sort(<unknown type>)'
> > Candidates are void Entry::sort(int(*)(void*, void*))
>
>Rick, this is not really a comprehensive answer, but would your 
>second example here work if you didn't use the scope resolution? As in...
>
>// sortPaths
>void Entry::sortPaths()
>{
>      sort(compare_Paths);
>}
>
>You're already in the right scope once you get in sortPaths, which 
>is why you're able to call sort without scope resolution.

Nothing changes. I still get the same errors


>I'm going to be lazy and link you a page made by guys who have 
>forgotten more about this than I'll ever know.
>
>http://www.codeproject.com/KB/cpp/FastDelegate.aspx
>
>The part about member function pointers is just past the 
>introduction, and they go into pretty great detail about why member 
>function pointers are more complicated.

This is interesting reading, but doesn't help with my problem. Or at 
least I can't seem to make it work still.

~Rick 

Reply via email to