I am running into a bad pointer problem when using std::sort() with a comparator functor. I am sorting an std::vector of class pointers. I sort the pointers against different class members depending ...
I'm trying to sort a vector of objects for which defining operator< doesn't really make sense, so I'm trying to use the predicate form of std::sort, but I'm having trouble getting it to compile.
Results that may be inaccessible to you are currently showing.
Hide inaccessible results