I suspect the array improvements ‘broke’ sorting of a refcountedarray?
A previously fine sorter like this:
Now throws compile errors. This line in sortArray:
looks for a compareElements with (XmlDataItem& first, XmlDataItem& second), not the refcounted versions.
I suppose that, if the array were locked (it doesn’t seem to be), then the reference would work as well, but when I tried to change my comparator, it failed because I have a private copy constructor. (I know elements in an array need to be movable, but the ref counted ptrs are, not the actual item).
I browsed the GIT, and tried to remove the cast from this in the sort method:
I get no matching function. Any clues?
Bruce