markg added a comment.
While this works, there is a newer en better way for it. It's new in C++14 and called "transparent compare". In "this" case it won't change the resulting code of how you compare, but it might be worth checking that out. Read this: https://www.fluentcpp.com/2017/06/09/search-set-another-type-key/ And watch this: https://www.youtube.com/watch?v=BBUacofxOP8 those will explain how to use it. REPOSITORY R241 KIO REVISION DETAIL https://phabricator.kde.org/D13211 To: jtamate, dfaure Cc: markg, bruns, kde-frameworks-devel, michaelh, ngraham