> 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.

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.

Reply via email to