--- rgearyiii <[EMAIL PROTECTED]> wrote: > --- In [email protected], "Shyan Lam" > <[EMAIL PROTECTED]> wrote: > > > > Because the predicate should not be a non-static > member. > > Since I need the predicate to access member data of > the instance of the > class from which it is called, I'm still stuck then. > > Is there an easy modification to the STL althorithm > that would allow me > to use a non-static predicate? > Since you have the member data public, it doesn't matter. Also, you are passing the addresses of the array elements to the sort function and sort doesn't care where the elements are. Have you tried your compare as a static or global function?
Ray ____________________________________________________________________________________ Cheap talk? Check out Yahoo! Messenger's low PC-to-Phone call rates. http://voice.yahoo.com
