D23372: Add operator |= for Query Terms

Ivan Čukić noreply at phabricator.kde.org
Fri Aug 23 10:07:16 BST 2019


ivan requested changes to this revision.
ivan added a comment.
This revision now requires changes to proceed.


  This is something I did have initally in kastats, it was killed because while this is tempting
  
    query |= Type(types);
  
  it ruins the idea of the chaning API because it can not be used like this:
  
    query |= Type(types) | OtherTerm(...);
  
  In order for this to work properly, we'd need to use expression templates which would make the library significanly more complex.
  
  I don't think it is worth it.

REPOSITORY
  R159 KActivities Statistics

REVISION DETAIL
  https://phabricator.kde.org/D23372

To: meven, ivan
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190823/3d408f80/attachment.html>


More information about the Kde-frameworks-devel mailing list