D13211: Enable comparing KFileItems by url
Mark Gaiser
noreply at phabricator.kde.org
Wed Jun 13 20:42:56 UTC 2018
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20180613/d2507a4a/attachment.html>
More information about the Kde-frameworks-devel
mailing list