B
Brad Hagen
I am trying to sort a vector of pointers to Foo, and my code looks something
like this:
vector<Foo*> *pNewVector
sort(pNewVector->begin(),
pNewVector->end(),
Foo::SortFunction
);
This was working for a while, but in one case it deadlocks in the sort
function (not Foo::SortFunction but somewhere else, in the standard library
code I guess, I don't know). Is it obvious that this won't work in general?
Thanks for any help.
Brad
like this:
vector<Foo*> *pNewVector
sort(pNewVector->begin(),
pNewVector->end(),
Foo::SortFunction
);
This was working for a while, but in one case it deadlocks in the sort
function (not Foo::SortFunction but somewhere else, in the standard library
code I guess, I don't know). Is it obvious that this won't work in general?
Thanks for any help.
Brad